Skip to content

Commit

Permalink
fix: add workflow tests --ast config to enable inline configs to work
Browse files Browse the repository at this point in the history
  • Loading branch information
rori4 committed Mar 20, 2024
1 parent 6a946e8 commit 8b146c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ jobs:
with:
version: nightly
- name: Run foundry tests
# --ast tests enables inline configs to work https://github.com/foundry-rs/foundry/issues/7310#issuecomment-1978088200
run: |
forge test -vv --gas-report
forge test -vv --gas-report --ast
id: test

coverage:
Expand All @@ -69,4 +70,4 @@ jobs:
- name: Run foundry coverage
run: |
FOUNDRY_PROFILE=coverage forge coverage --report summary
id: coverage
id: coverage
2 changes: 0 additions & 2 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,3 @@ seed = "0xee1d0f7d9556539a9c0e26aed5e63556"
runs = 1000

# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options
[profile.default.invariant]
fail_on_revert = true

0 comments on commit 8b146c4

Please sign in to comment.