diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3636a934d..e44528f39 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -125,6 +125,8 @@ jobs: test-fuzz: needs: ["lint", "build"] + env: + FOUNDRY_FUZZ_RUNS: "5000" runs-on: "ubuntu-latest" steps: - name: "Check out the repo" @@ -179,6 +181,8 @@ jobs: test-fork: needs: ["lint", "build"] + env: + FOUNDRY_FUZZ_RUNS: "100" runs-on: "ubuntu-latest" steps: - name: "Check out the repo" @@ -221,7 +225,7 @@ jobs: uses: "foundry-rs/foundry-toolchain@v1" - name: "Generate the coverage report" - run: "forge coverage --report lcov" + run: "forge coverage --match-path \"test/{fuzz,unit}/**/*.sol\" --report lcov" - name: "Upload coverage report to Codecov" uses: "codecov/codecov-action@v3" diff --git a/foundry.toml b/foundry.toml index 552ccf92e..19e683a99 100644 --- a/foundry.toml +++ b/foundry.toml @@ -67,8 +67,6 @@ # Test the optimized contracts without re-compiling them [profile.test-optimized] - fuzz = { runs = 5_000 } - invariant = { depth = 150, runs = 100 } src = "test" [doc]