Skip to content

feat: update bindings and add queries #68

feat: update bindings and add queries

feat: update bindings and add queries #68

Workflow file for this run

name: CI
on:
push:
branches: [master]
paths:
- grammar.js
- src/**
- test/**
- bindings/**
- binding.gyp
pull_request:
paths:
- grammar.js
- src/**
- test/**
- bindings/**
- binding.gyp
concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true
jobs:
test:
name: Test parser
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-14]
steps:
- name: Set up repository
uses: tree-sitter/[email protected]
with:
node-version: ${{vars.NODE_VERSION}}
- name: Clone nvim-treesitter corpus
uses: actions/checkout@v4
with:
repository: nvim-treesitter/nvim-treesitter
path: .tests/nvim-treesitter
sparse-checkout: queries/
- name: Clone nvim-treesitter-textobjects corpus
uses: actions/checkout@v4
with:
repository: nvim-treesitter/nvim-treesitter-textobjects
path: .tests/nvim-treesitter-textobjects
sparse-checkout: queries/
- name: Run tests
uses: tree-sitter/[email protected]
with:
test-library: ${{runner.os == 'Linux'}}
corpus-files: .tests/*/queries/*/*.scm