From 2a6dfa7a4d69c74fec45f9a445434c8c61e52b54 Mon Sep 17 00:00:00 2001 From: Will Hawkins Date: Tue, 20 Jan 2026 07:11:18 -0500 Subject: [PATCH] Update CI/CD Signed-off-by: Will Hawkins --- .github/workflows/main.yaml | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index e43c155..eb6d544 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -3,17 +3,38 @@ on: [push, pull_request] name: Continuous Integration jobs: - treesitter-pre: - uses: ./.github/workflows/treesitter.yaml grammar-tests: name: Grammar Tests runs-on: ubuntu-latest needs: treesitter-pre steps: - uses: actions/checkout@v2 + - uses: actions/setup-node@v4 + - uses: tree-sitter/setup-action@v2 # 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: /opt/hostedtoolcache/tree-sitter/cli/bin/tree-sitter test + - run: tree-sitter generate working-directory: ./tree-sitter-p4 + - run: tree-sitter test + working-directory: ./tree-sitter-p4 + library-tests: + name: Library Tests + runs-on: ubuntu-latest + needs: treesitter-pre + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v4 + - uses: tree-sitter/setup-action@v2 + - uses: swift-actions/setup-swift@v3 + # 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: tree-sitter test + working-directory: ./tree-sitter-p4 + - run: swift build + - run: swift test