Skip to content

Commit

Permalink
Merge pull request #768 from gitcoindev/feat/deep-fuzzing
Browse files Browse the repository at this point in the history
feature: deep fuzzing on newly modified Solidity contracts and pull requests
  • Loading branch information
rndquu authored Aug 28, 2023
2 parents 8fa34df + 0e19fc4 commit 36b9205
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/deep-fuzz.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deep Fuzz
on:
push:
branches:
- development
paths:
- '**.sol'

jobs:
deep-fuzz:
name: Deep Fuzz
runs-on: ubuntu-22.04
env:
FOUNDRY_PROFILE: intense

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

- 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 = 100000

1 comment on commit 36b9205

@ubiquibot
Copy link

@ubiquibot ubiquibot bot commented on 36b9205 Aug 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.