feat: update bindings and add queries #69
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |