feat: move delimiter parsing to the scanner #15
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 | |
- main | |
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: Check for scanner changes | |
uses: tj-actions/changed-files@v42 | |
id: scanner-check | |
if: runner.os == 'Linux' | |
with: | |
files: src/scanner.c | |
- name: Fuzz scanner | |
uses: tree-sitter/fuzz-action@v4 | |
if: steps.scanner-check.outputs.any_changed == 'true' | |
with: | |
corpus: examples | |
- name: Run tests | |
uses: tree-sitter/[email protected] | |
with: | |
test-library: ${{runner.os == 'Linux'}} | |
corpus-files: examples/* | |
invalid-files: examples/invalid.tst |