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

test(contract): brutalize ci fuzz runs #1118

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all 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
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ jobs:
- name: Unit Tests
if: ${{ !cancelled() && steps.setup_success.outcome == 'success' && steps.ts_build.outcome == 'success' }}
run: yarn test:unit
env:
FOUNDRY_PROFILE: ci

Multinode:
permissions: write-all
Expand Down
4 changes: 3 additions & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ block_timestamp = 1_680_220_800 # The value of block.timestamp in tests. March 3
bytecode_hash = "none" # Determines the hash method for the metadata hash that is appended to the bytecode
cbor_metadata = false # Remove all metadata hashes from your contract's bytecode.
evm_version = "paris" # The EVM version to use during tests.
fuzz = { runs = 256 } # The amount of fuzz runs to perform for each fuzz test case.
fuzz = { runs = 65536, seed = "42" } # The amount of fuzz runs to perform for each fuzz test case.
gas_reports = ["*"] # The contracts to print gas reports for.
libs = ["node_modules", "lib"]
optimizer = true # Whether or not to enable the Solidity optimizer.
Expand All @@ -23,6 +23,8 @@ fs_permissions = [
extra_output = ["metadata", "abi", "bin"]
extra_output_files = ["metadata", "abi", "bin"]

[profile.ci]
fuzz = { runs = 65536, seed = "42" }

[etherscan]
sepolia = { chain = 11155111, key = "${ETHERSCAN_API_KEY}" }
Expand Down
Loading