Skip to content

Commit 7baf5d7

Browse files
committed
Check dprint in CI
1 parent de279a0 commit 7baf5d7

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,30 @@ 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+
# TODO: The cache fails when copied between GHA runners. See:
80+
# https://github.com/dprint/dprint/issues/734
81+
# https://github.com/dprint/dprint/issues/735
82+
# - uses: actions/cache@v3
83+
# with:
84+
# path: ~/.cache/dprint
85+
# key: ${{ runner.os }}-dprint-${{ hashFiles('package-lock.json', '.dprint.jsonc') }}
86+
# restore-keys: |
87+
# ${{ runner.os }}-dprint-
88+
89+
- name: Check formatting
90+
run: npx dprint check
91+
6892
browser-integration:
6993
runs-on: ubuntu-latest
7094

0 commit comments

Comments
 (0)