-
-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (47 loc) · 1.22 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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