Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: deep fuzzing on newly modified Solidity contracts and pull requests #768

Merged
merged 6 commits into from
Aug 28, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/deep-fuzz.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Deep Fuzz
on:
push:
branches:
- development
paths:
- '**.sol'

jobs:
deep-fuzz:
name: Deep Fuzz
runs-on: ubuntu-22.04
env:
FOUNDRY_PROFILE: intense
permissions:
gitcoindev marked this conversation as resolved.
Show resolved Hide resolved
contents: read

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Node
gitcoindev marked this conversation as resolved.
Show resolved Hide resolved
uses: actions/setup-node@v3
with:
node-version: "18.14.1"

- name: Setup Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly-d369d2486f85576eec4ca41d277391dfdae21ba7

- name: Forge install
working-directory: packages/contracts
run: forge install

- name: Deep Fuzz Solidity Contracts
working-directory: packages/contracts
run: forge test
3 changes: 3 additions & 0 deletions packages/contracts/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,6 @@ targets = [

[profile.docs]
src = 'src/dollar'

[profile.intense.fuzz]
runs = 10000
gitcoindev marked this conversation as resolved.
Show resolved Hide resolved