Skip to content

build: update & regenerate parser #26

build: update & regenerate parser

build: update & regenerate parser #26

Workflow file for this run

name: Test grammar
on:
push:
branches: ["*"]
paths:
- grammar.js
- src/**
- bindings/**
- binding.gyp
pull_request:
paths:
- grammar.js
- src/**
- bindings/**
- binding.gyp
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-grammars/actions/setup@main
with:
submodules: true
node-version: ${{vars.NODE_VERSION}}
ref: 3ad4da8d411a0b05e0eee6cfa733f80d0359eccb
- name: Run tests
uses: tree-sitter-grammars/actions/test@main
with:
test-library: ${{runner.os == 'Linux'}}
examples: examples/examples/**/*.ino
fuzz:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Check for scanner changes
continue-on-error: true
id: scanner-changes
run: "! git diff --quiet -- src/scanner.c"
- name: Fuzz parser
if: steps.scanner.changes.outcome == 'success'
uses: tree-sitter-grammars/tree-sitter-fuzz-action@v3