From 9e555d4d8bf98c9f9d0912706e1911a88e64193b Mon Sep 17 00:00:00 2001 From: Hank Jackson Date: Mon, 12 Aug 2024 12:38:45 -0400 Subject: [PATCH] fix CI --- .github/workflows/ci.yml | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a35257d..0b90387 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,25 +7,27 @@ on: pull_request: branches: - "**" - jobs: test: - name: Test parser - runs-on: ${{matrix.os}} + runs-on: ${{ matrix.os }} strategy: - fail-fast: false + fail-fast: true matrix: - os: [ubuntu-latest, windows-latest, macos-14] + os: [macos-latest, ubuntu-latest] + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18 + - run: npm install + - run: npm test + + test_windows: + runs-on: windows-latest steps: - - name: Checkout repository - uses: actions/checkout@v4 - - name: Set up tree-sitter - uses: tree-sitter/setup-action/cli@v1 - - name: Set up examples - run: |- - git config --global core.longpaths true - git clone https://github.com/npm/cli examples/cli --single-branch --depth=1 --filter=blob:none - - name: Run tests - uses: tree-sitter/parser-test-action@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: - test-rust: ${{runner.os == 'Linux'}} + node-version: 18 + - run: npm install + - run: npm run-script test-windows