Skip to content

Commit

Permalink
feat: error if js bundle differs
Browse files Browse the repository at this point in the history
  • Loading branch information
BD103 committed Nov 1, 2024
1 parent d43eac4 commit 05d1ad8
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ jobs:
uses: pnpm/action-setup@v4
with:
version: ^9.7.1
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
Expand All @@ -67,3 +66,16 @@ jobs:

- name: Build project
run: pnpm build

- name: Error if files have changed
run: |
if [[ $(git status --porcelain) ]]; then
echo '::error title=Rebuilt Javascript bundles and found a different output.::Did you run `pnpm build`?'
git status
git diff
exit 1
else
echo Rebuilt Javascript bundles match.
fi

0 comments on commit 05d1ad8

Please sign in to comment.