Skip to content

Commit

Permalink
Check dprint in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey committed Aug 16, 2023
1 parent de279a0 commit 7baf5d7
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,30 @@ jobs:
- name: Linter
run: npm run lint

format:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '*'
check-latest: true
- run: npm ci

# TODO: The cache fails when copied between GHA runners. See:
# https://github.com/dprint/dprint/issues/734
# https://github.com/dprint/dprint/issues/735
# - uses: actions/cache@v3
# with:
# path: ~/.cache/dprint
# key: ${{ runner.os }}-dprint-${{ hashFiles('package-lock.json', '.dprint.jsonc') }}
# restore-keys: |
# ${{ runner.os }}-dprint-

- name: Check formatting
run: npx dprint check

browser-integration:
runs-on: ubuntu-latest

Expand Down

0 comments on commit 7baf5d7

Please sign in to comment.