-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (45 loc) · 1.46 KB
/
fuzz.yml
File metadata and controls
56 lines (45 loc) · 1.46 KB
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
50
51
52
53
54
55
56
name: Fuzz Testing
on:
schedule:
- cron: '0 4 * * 3' # Wednesday 4am UTC
workflow_dispatch:
permissions: {}
env:
JAVA_VERSION: '21'
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
fuzz:
name: Jazzer Fuzz Tests
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Set up JDK ${{ env.JAVA_VERSION }}
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.0
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Build (compile only)
run: ./gradlew :freemind:compileTestJava --no-daemon --no-configuration-cache
- name: Run fuzz tests
run: |
./gradlew :freemind:test --no-daemon --no-configuration-cache \
--tests "tests.freemind.fuzz.*" \
-Djazzer.fuzz=true
timeout-minutes: 30
- name: Upload crash artifacts
if: failure()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: fuzz-crashes
path: |
**/crash-*
**/Jacoco-*
freemind/build/test-results/
retention-days: 30