Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hankthetank27 committed Aug 12, 2024
1 parent 785e133 commit 9e555d4
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9e555d4

Please sign in to comment.