Skip to content

Commit 6451645

Browse files
committed
fixup: workflows
1 parent 656f546 commit 6451645

File tree

2 files changed

+25
-29
lines changed

2 files changed

+25
-29
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,28 @@ jobs:
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}}

.github/workflows/fuzz.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)