-
Notifications
You must be signed in to change notification settings - Fork 5
40 lines (37 loc) · 1002 Bytes
/
fuzz.yml
File metadata and controls
40 lines (37 loc) · 1002 Bytes
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
name: Fuzz
on:
push:
pull_request:
branches:
- main
workflow_dispatch:
permissions:
contents: read
jobs:
fuzz:
name: Fuzz scanner
runs-on: ubuntu-latest
if: >-
!github.event.repository.is_template &&
github.event.head_commit.message != 'Initial commit'
strategy:
fail-fast: false
matrix:
language: [objectscript, udl, core]
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Check for scanner changes
id: scanner-check
shell: sh
run: |-
{
! git rev-parse HEAD^ >/dev/null 2>&1 && printf 'changed=true\n' ||
! git diff --quiet HEAD^ -- common/scanner.h &&
printf 'changed=true\n' || printf 'changed=false\n'
} >> "$GITHUB_OUTPUT"
- name: Run fuzzer
uses: tree-sitter/fuzz-action@v4
if: steps.scanner-check.outputs.changed == 'true'
with:
directory: ${{matrix.language}}