Skip to content

Commit

Permalink
Merge branch 'check-dist' into v2
Browse files Browse the repository at this point in the history
  • Loading branch information
hmarr committed Aug 20, 2022
2 parents 61ba000 + 15b9c03 commit dead218
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 dead218

Please sign in to comment.