testing: Add Basic Support for Cli Testing
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
@@ -57,4 +57,25 @@ jobs:
|
||||
- run: tree-sitter generate
|
||||
working-directory: ./tree-sitter-p4
|
||||
- run: ./ci/format.sh
|
||||
cli-tests:
|
||||
name: Cli Tests
|
||||
runs-on: ubuntu-build
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v4
|
||||
- uses: tree-sitter/setup-action@v2
|
||||
with:
|
||||
tree-sitter-ref: "master"
|
||||
- uses: swift-actions/setup-swift@v3
|
||||
with:
|
||||
swift-version: "main-snapshot"
|
||||
skip-verify-signature: true
|
||||
# Because our tree-sitter code is in a subdirectory,
|
||||
# and working-directory does not apply to uses, we
|
||||
# are forced to specify calls to the CI ourselves.
|
||||
# See https://github.com/orgs/community/discussions/25742
|
||||
- run: tree-sitter generate
|
||||
working-directory: ./tree-sitter-p4
|
||||
- run: swift build
|
||||
- run: ./ci/tests/test.sh
|
||||
|
||||
|
||||
Reference in New Issue
Block a user