Skip to content

Commit 1fe7572

Browse files
committed
Add fuzz test for our scanner code.
This is useful in detecting and reproducing SEGV errors, but even after attempting to fix the issue, fuzz seems to fail in a different way, so at this point we can't turn this on for CI. This should create a workflow so we can manually trigger it.
1 parent 31aba1d commit 1fe7572

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/fuzz.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Fuzz parser
2+
3+
# Run this workflow on changes to the external scanner
4+
on:
5+
workflow_dispatch:
6+
#push:
7+
# paths:
8+
# - src/scanner.c
9+
# - src/stack.h
10+
#pull_request:
11+
# paths:
12+
# - src/scanner.c
13+
# - src/stack.h
14+
15+
jobs:
16+
test:
17+
name: Parser fuzzing
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v3
21+
- uses: eed3si9n/tree-sitter-fuzz-action@v1
22+
with:
23+
language: scala
24+
external-scanner: src/scanner.c
25+
time: 60

0 commit comments

Comments
 (0)