Skip to content

Commit

Permalink
build(tesy.yml): test the optimized contracts without re-compiling them
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielstoica committed Nov 21, 2024
1 parent df0a7bf commit 977495e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ jobs:
run: "FOUNDRY_PROFILE=optimized forge build"
id: build

- name: "Build the test contracts"
run: "FOUNDRY_PROFILE=test-optimized forge build"
id: build-test

- name: "Run the tests"
run: "forge test -vvv"
id: test
4 changes: 4 additions & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ runs = 10_000
out = "out-optimized"
via_ir = true

# Test the optimized contracts without re-compiling them
[profile.test-optimized]
src = "test"

[fmt]
bracket_spacing = true
int_types = "long"
Expand Down

0 comments on commit 977495e

Please sign in to comment.