-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (42 loc) · 1.37 KB
/
fuzzing.yml
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
name: "Fuzzing"
on:
schedule:
# Runs at 12 PM UTC every 3 days
- cron: "0 12 */3 * *"
workflow_dispatch: # Allows manual triggering without specifying branches
jobs:
fuzzing:
runs-on: "self-hosted"
steps:
- name: Clean up workspace
run: sudo rm -rf /home/ubuntu/actions-runner/_work/v2-core/v2-core/*
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
persist-credentials: false
fetch-depth: 0
# Self-hosted runner should have echidna installed
- name: Verify echidna installation
run: which echidna
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly-fdd321bac95f0935529164a88faf99d4d5cfa321
- name: Install NodeJS
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Build package
run: forge build --build-info --skip script test
- name: "Run Echidna: Autopool"
run: npm run fuzz:autopool
- name: "Run Echidna: Router"
run: npm run fuzz:router
- name: "Run Echidna: NavTracking (Strategy)"
run: npm run fuzz:strategy:nav
- name: "Run Echidna: ViolationTracking (Strategy)"
run: npm run fuzz:strategy:violation