From 6a6d5cbdd13a05b68010e9c63566ae92ebc49304 Mon Sep 17 00:00:00 2001 From: Will Hawkins Date: Sat, 17 Jan 2026 00:02:58 -0500 Subject: [PATCH] Add CI For Grammar Signed-off-by: Will Hawkins --- .github/workflows/main.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/main.yaml diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..9a8fefd --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,18 @@ +on: [push, pull_request] + +name: Continuous Integration + +jobs: + grammar-tests: + name: Grammar Tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - working-directory: ./tree-sitter-p4 + uses: actions/setup-node@v4 + - working-directory: ./tree-sitter-p4 + run: npm ci + - working-directory: ./tree-sitter-p4 + run: npm run generate + - working-directory: ./tree-sitter-p4 + run: npm run test