Skip to content

Commit

Permalink
Add CI check that tree-sitter files are up to date
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Jan 3, 2024
1 parent 7145bf1 commit e576ad7
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,22 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 18
- run: git tag pre-updates
- run: npm install
- name: Create generated files
shell: bash
run: |
npm run gen
failed=false
echo different files:
git diff pre-updates --name-only --exit-code || failed=true
echo end different files
if ! [ "$failed" = "false" ]; then
echo '::error::Generated files are out of date!'
echo '::error::run `npm run gen` and commit the changes'
exit "$exitcode"
fi
- run: npm test
# FIXME: also parse tests/*.just

0 comments on commit e576ad7

Please sign in to comment.