Skip to content

Commit

Permalink
chore: add dist diff checker workflow (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
danadajian authored Dec 8, 2021
1 parent ef88f15 commit 0000fab
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,19 @@ jobs:

- name: Package
run: npm run package

- name: Compare the expected and actual dist/ directories
id: diff
run: |
if [[ $(git status --porcelain) ]]; then
echo "Detected uncommitted changes after build. See status below:"
git status
exit 1
fi
# If dist/ was different than expected, upload the expected version as an artifact
- uses: actions/upload-artifact@v2
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
with:
name: dist
path: dist/

0 comments on commit 0000fab

Please sign in to comment.