diff --git a/.github/workflows/foundry.yml b/.github/workflows/foundry.yml index fdaf8a9d..1fea09ed 100644 --- a/.github/workflows/foundry.yml +++ b/.github/workflows/foundry.yml @@ -25,7 +25,7 @@ jobs: uses: foundry-rs/foundry-toolchain@v1 - name: Build contracts via IR & check sizes - run: forge build --force --sizes # don't use compilation cache + run: yarn build:forge --force --sizes # don't use compilation cache env: FOUNDRY_PROFILE: build @@ -43,6 +43,6 @@ jobs: uses: foundry-rs/foundry-toolchain@v1 - name: Run forge tests - run: forge test -vvv + run: yarn test:forge -vvv env: FOUNDRY_PROFILE: test diff --git a/README.md b/README.md index 4a2cc753..421f79b7 100644 --- a/README.md +++ b/README.md @@ -14,9 +14,9 @@ All audits are stored in the [audits](audits)' folder. ## Getting started -Install dependencies: `forge install` +Install dependencies: `yarn` -Run tests: `forge test` +Run tests: `yarn test:forge` ## Licenses diff --git a/foundry.toml b/foundry.toml index f3334ec6..f09ac506 100644 --- a/foundry.toml +++ b/foundry.toml @@ -3,7 +3,8 @@ src = "src" out = "out" test = "test" libs = ["lib"] -optimizer_runs = 999999 # Etherscan does not support verifying contracts with more optimization runs. +via_ir = true +optimizer_runs = 999999 # Etherscan does not support verifying contracts with more optimizer runs. [profile.default.fuzz] runs = 4096 @@ -16,13 +17,12 @@ wrap_comments = true [profile.build] -via-ir = true test = "/dev/null" script = "/dev/null" [profile.test] -via-ir = false +via_ir = false [profile.test.fuzz] runs = 16384