From fad3c2cc9cf07e010ba2062708106044e33847b6 Mon Sep 17 00:00:00 2001 From: Will Hawkins Date: Sat, 17 Jan 2026 00:07:08 -0500 Subject: [PATCH] Add CI For Grammar (1) Signed-off-by: Will Hawkins --- .github/workflows/main.yaml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 9a8fefd..7a45cd4 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -6,13 +6,12 @@ jobs: grammar-tests: name: Grammar Tests runs-on: ubuntu-latest + defaults: + run: + - working-directory: ./tree-sitter-p4 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 + - uses: actions/setup-node@v4 + - run: npm ci + - run: npm run generate + - run: npm run test