-
-
Notifications
You must be signed in to change notification settings - Fork 426
31 lines (26 loc) · 950 Bytes
/
format.yml
File metadata and controls
31 lines (26 loc) · 950 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Format Stencil Docs (Check)
on:
workflow_call:
# Make this a reusable workflow, no value needed
# https://docs.github.com/en/actions/using-workflows/reusing-workflows
jobs:
format:
name: Check
runs-on: 'ubuntu-latest'
steps:
- name: Checkout Code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
# this overrides previous versions of the node runtime that was set.
# jobs that need a different version of the Node runtime should explicitly
# set their node version after running this step
- name: Use Node Version from Volta
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version-file: './package.json'
cache: 'npm'
- name: Install Dependencies
run: npm ci
shell: bash
- name: Prettier Check
run: npm run prettier.dry-run
shell: bash