Skip to content

Commit

Permalink
Improve dist CI check
Browse files Browse the repository at this point in the history
  • Loading branch information
hmarr committed Aug 20, 2022
1 parent e3e1191 commit 15b9c03
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,11 @@ jobs:
- name: Run tests
run: npm test

- name: Check build artefact has been checked in
run: npm run build && git diff
- name: Compare the expected and actual dist/ directories
run: |
npm run build
if [ "$(git diff --ignore-blank-lines --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff
exit 1
fi

0 comments on commit 15b9c03

Please sign in to comment.