Skip to content

Commit

Permalink
ci: verify that npm run package was run
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Schindelin <[email protected]>
  • Loading branch information
dscho committed Feb 18, 2021
1 parent 986a257 commit c10c4e2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ jobs:
- run: npm ci
- run: npm run build
- run: npm run test
- run: npm run package
- name: Verify that `dist/index.js` is up to date
shell: bash
run: |
# `ncc` produces output with mixed line endings
test -z "$(git diff -w HEAD | tee diff.txt)" || {
echo 'Files changed after `npm run package`'
cat diff.txt
exit 1
}
test: # make sure the action works on a clean machine without building
runs-on: windows-latest
steps:
Expand Down

0 comments on commit c10c4e2

Please sign in to comment.