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 4, 2024
1 parent 7145bf1 commit 7eb13c3
Show file tree
Hide file tree
Showing 2 changed files with 134 additions and 709 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,20 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm install
- run: git tag pre-updates
- run: npm install --locked
- name: Create generated files
shell: bash
run: |
npm run gen
failed=false
git diff pre-updates --exit-code || failed=true
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

Loading

0 comments on commit 7eb13c3

Please sign in to comment.