File tree Expand file tree Collapse file tree 2 files changed +25
-29
lines changed
Expand file tree Collapse file tree 2 files changed +25
-29
lines changed Original file line number Diff line number Diff line change 4646 run : node scripts/build.js
4747 - name : Verify grammar consistency
4848 run : git diff --exit-code -- */src/grammar.json
49+ fuzz :
50+ name : Fuzz parsers
51+ runs-on : ubuntu-latest
52+ strategy :
53+ fail-fast : false
54+ matrix :
55+ parser : [tree-sitter-markdown, tree-sitter-markdown-inline]
56+ steps :
57+ - name : Checkout repository
58+ uses : actions/checkout@v6
59+ with :
60+ fetch-depth : 2
61+ - name : Check for scanner changes
62+ id : scanner-changes
63+ run : |-
64+ if git diff --quiet HEAD^ -- '${{matrix.parser}}/src/scanner.c'; then
65+ printf 'changed=false\n' >> "$GITHUB_OUTPUT"
66+ else
67+ printf 'changed=true\n' >> "$GITHUB_OUTPUT"
68+ fi
69+ - name : Fuzz ${{matrix.parser}} parser
70+ uses : tree-sitter/fuzz-action@v6
71+ if : steps.scanner-changes.outputs.changed == 'true'
72+ with :
73+ directory : ${{matrix.parser}}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments