Skip to content
Open
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
13 changes: 13 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,19 @@ jobs:
- name: Build
run: npm run all

- name: Check dist/ is up to date
run: |
if ! git diff --quiet dist/; then
echo "::warning::dist/ is out of date. Run 'npm run package' locally and commit the result."
git diff --stat dist/
echo "## dist/ is out of date" >> $GITHUB_STEP_SUMMARY
echo "Run \`npm run package\` locally and commit the result." >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
git diff --stat dist/ >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
fi

test:
name: Test
runs-on: ubuntu-latest
Expand Down
Loading