@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user