Skip to content

chore: regenerate parser and bindings with 0.26.6 #136

chore: regenerate parser and bindings with 0.26.6

chore: regenerate parser and bindings with 0.26.6 #136

Workflow file for this run

name: CI
on:
push:
branches: [split_parser]
pull_request:
branches: [split_parser]
workflow_dispatch:
concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true
jobs:
test:
name: Test parsers
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up tree-sitter
uses: tree-sitter/setup-action/cli@v2
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: ${{vars.NODE_VERSION}}
- name: Build with all extensions
run: node scripts/build.js
env:
ALL_EXTENSIONS: 1
- name: Run tests
uses: tree-sitter/parser-test-action@v3
with:
generate: false
test-parser-cmd: node scripts/test.js
- name: Rebuild with default extensions
run: node scripts/build.js
- name: Verify grammar consistency
run: git diff --exit-code -- */src/grammar.json
fuzz:
name: Fuzz parsers
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
parser: [tree-sitter-markdown, tree-sitter-markdown-inline]
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 2
- name: Check for scanner changes
id: scanner-changes
run: |-
if git diff --quiet HEAD^ -- '${{matrix.parser}}/src/scanner.c'; then
printf 'changed=false\n' >> "$GITHUB_OUTPUT"
else
printf 'changed=true\n' >> "$GITHUB_OUTPUT"
fi
- name: Fuzz ${{matrix.parser}} parser
uses: tree-sitter/fuzz-action@v4
if: steps.scanner-changes.outputs.changed == 'true'
with:
directory: ${{matrix.parser}}
query:
name: Validate queries
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
parser: [markdown, markdown-inline]
steps:
- name: Set up repository
uses: actions/checkout@v6
- name: Set up tree-sitter
uses: tree-sitter/setup-action/cli@v2
- name: Build parser
run: tree-sitter build tree-sitter-${{matrix.parser}}
- name: Set up ts_query_ls
run: curl -fL https://github.com/ribru17/ts_query_ls/releases/latest/download/ts_query_ls-x86_64-unknown-linux-gnu.tar.gz | tar -xz
- name: Check queries
run: ./ts_query_ls check -f tree-sitter-${{matrix.parser}}/queries/