Skip to content

Commit

Permalink
Update ci to use tree-sitter's actions
Browse files Browse the repository at this point in the history
  • Loading branch information
euclidianAce committed Jun 3, 2024
1 parent 637bbad commit 3c929d3
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,28 @@ name: tests
on:
push:
branches: [ main ]
paths:
- grammar.js
- src/**
- test/**
pull_request:
branches: [ main ]
paths:
- grammar.js
- src/**
- test/**

jobs:
build:

runs-on: ubuntu-latest

test:
name: Run tests
runs-on: ${{matrix.os}}
strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 15.x]
os: [ubuntu-latest, windows-latest, macos-14]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install tree-sitter-cli
- run: npm run generate
- run: npm ci
- run: npm run test
env:
CI: true
- name: Checkout
uses: actions/checkout@v4
- name: Setup tree-sitter
uses: tree-sitter/setup-action/cli@v1
- name: Run tests
uses: tree-sitter/parser-test-action@v2

0 comments on commit 3c929d3

Please sign in to comment.