Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,17 @@ jobs:

- name: Build
run: npm run build

- name: Verify dist/ matches src/
run: |
if ! git diff --quiet dist/; then
echo "::error::dist/ is out of sync with src/. The husky pre-commit hook should have rebuilt dist/ before commit. Did you commit without running 'npm install' first (which wires up the hook), or bypass hooks with --no-verify?"
echo "--- dist/ diff ---"
git diff --stat dist/
git diff dist/ | head -100
exit 1
fi
echo "dist/ matches src/ ✓"

- name: Lint
run: npm run lint
Expand Down
Loading