Skip to content

Commit 5ba5009

Browse files
committed
Check dprint in CI
1 parent c00dd87 commit 5ba5009

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,27 @@ jobs:
6565
- name: Linter
6666
run: npm run lint
6767

68+
format:
69+
runs-on: ubuntu-latest
70+
71+
steps:
72+
- uses: actions/checkout@v3
73+
- uses: actions/setup-node@v3
74+
with:
75+
node-version: '*'
76+
check-latest: true
77+
- run: npm ci
78+
79+
- uses: actions/cache@v3
80+
with:
81+
path: ~/.cache/dprint
82+
key: ${{ runner.os }}-dprint-${{ hashFiles('package-lock.json', '.dprint.jsonc') }}
83+
restore-keys: |
84+
${{ runner.os }}-dprint-
85+
86+
- name: Check formatting
87+
run: npx dprint check
88+
6889
browser-integration:
6990
runs-on: ubuntu-latest
7091

0 commit comments

Comments
 (0)