From e240fcc5aa42a3cc861772f36c1e28ebb60f7eb9 Mon Sep 17 00:00:00 2001 From: 6cdh Date: Tue, 12 Mar 2024 19:46:12 +0800 Subject: [PATCH] fix(ci): use tree-sitter parser actions --- .github/workflows/test.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5cc6ad1..5f834f2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,12 +10,16 @@ jobs: matrix: os: [macos-latest, ubuntu-latest, windows-latest] steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v2 + - name: Set up the repo + uses: tree-sitter/parser-setup-action@v1.1 with: - node-version: 16 - - run: npm install - - run: npm test + node-version: ${{vars.NODE_VERSION}} + - name: Run tests + uses: tree-sitter/parser-test-action@v1.2 + with: + lint: ${{runner.os == 'Linux'}} + test-library: ${{runner.os == 'Linux'}} + corpus-files: corpus/* # chez: # runs-on: ubuntu-latest