ci: update main workflow #177
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 | |
- .github/workflows/main.yml | |
pull_request: | |
branches: [master] | |
paths: | |
- grammar.js | |
- src/** | |
- test/** | |
- bindings/** | |
- binding.gyp | |
- .github/workflows/main.yml | |
concurrency: | |
group: ${{github.workflow}}-${{github.ref}} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: Tree-sitter tests | |
runs-on: ${{matrix.os}} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-14] | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Clone nvim help files | |
uses: actions/checkout@v4 | |
with: | |
repository: neovim/neovim | |
path: examples/neovim | |
sparse-checkout: runtime/doc/ | |
- name: Set up tree-sitter | |
uses: tree-sitter/setup-action/cli@v1 | |
- name: Run parser tests | |
uses: tree-sitter/parser-test-action@v2 | |
with: | |
test-rust: ${{runner.os == 'Linux'}} | |
- name: Parse sample files | |
uses: tree-sitter/parse-action@v4 | |
with: | |
files: |- | |
examples/neovim/runtime/doc/* |