Add CI For Grammar (17)

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
Will Hawkins
2026-01-17 01:38:55 -05:00
parent 4c1a823117
commit 79e890f757
+8 -11
View File
@@ -6,20 +6,17 @@ jobs:
grammar-tests: grammar-tests:
name: Grammar Tests name: Grammar Tests
runs-on: ubuntu-latest runs-on: ubuntu-latest
defaults:
run:
working-directory: ./tree-sitter-p4
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
- uses: tree-sitter/setup-action@v2 - uses: tree-sitter/setup-action@v2
with: with:
install-cli: true install-cli: true
- working-directory: ./tree-sitter-p4 # Because our tree-sitter code is in a subdirectory,
shell: sh # and working-directory does not apply to uses, we
run: pwd && ls # are forced to specify calls to the CI ourselves.
- uses: tree-sitter/parser-test-action@v3 # See https://github.com/orgs/community/discussions/25742
with: - run: tree-sitter generate
generate: false working-directory: ./tree-sitter-p4
working-directory: ./tree-sitter-p4 - run: tree-sitter test
test-parser-cmd: pwd working-directory: ./tree-sitter-p4