Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Commit

Permalink
infra: update GitHub Actions config to avoid checking for unexpected …
Browse files Browse the repository at this point in the history
…build output modifications in Windows, we still need a few more fixes for Windows
  • Loading branch information
trusktr committed Oct 31, 2023
1 parent 05b0e6b commit 574ea97
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,23 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: latest
- name: npm install, build, and test
- name: install
run: |
npm i
- name: check formatting
run: |
npm run prettier:check
- name: build
run: |
npm run clean
npm run build
- name: test
run: |
npm test
- name: ensure no modifications
run: git add . && git diff --quiet && git diff --cached --quiet
- name: check repo is clean
# skip this check in windows for now, as the build outputs may get slightly modified in Windows, which we want to fix.
if: runner.os != 'Windows'
run: |
git add . && git diff --quiet && git diff --cached --quiet
env:
CI: true

0 comments on commit 574ea97

Please sign in to comment.