Skip to content

Commit

Permalink
ci: use the tree-sitter actions
Browse files Browse the repository at this point in the history
  • Loading branch information
vrischmann committed Apr 13, 2024
1 parent 297ab77 commit 9e9dc9b
Showing 1 changed file with 7 additions and 36 deletions.
43 changes: 7 additions & 36 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,44 +11,15 @@ jobs:
strategy:
fail-fast: true
matrix:
os: [macos-latest, ubuntu-latest]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20.x'

- name: Install Dependencies
run: |
npm install -g tree-sitter-cli node-gyp
npm install
- name: Test
run: |
tree-sitter generate
tree-sitter test

- name: Build bindings
run: |
node-gyp configure
node-gyp build
bindings-rust:
needs: test
name: Rust Bindings
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [macos-latest, ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Set up tree-sitter
uses: tree-sitter/setup-action/cli@v1

- name: Test
run: |
cargo test
- name: Run tests
uses: tree-sitter/parser-test-action@v2
with:
test-rust: ${{ runner.os == 'Linux' }}

0 comments on commit 9e9dc9b

Please sign in to comment.