-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Pascal Marco Caversaccio <[email protected]>
- Loading branch information
1 parent
8d1f1a4
commit c7ac8b2
Showing
4 changed files
with
28 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,7 +75,7 @@ jobs: | |
os: | ||
- ubuntu-latest | ||
ruby_version: | ||
- 3.3 | ||
- 3.4 | ||
|
||
steps: | ||
- name: Checkout | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,11 +64,13 @@ jobs: | |
run: forge config | ||
env: | ||
FOUNDRY_PROFILE: ci | ||
FOUNDRY_DISABLE_NIGHTLY_WARNING: "1" | ||
|
||
- name: Foundry tests | ||
run: pnpm test:forge | ||
env: | ||
FOUNDRY_PROFILE: ci | ||
FOUNDRY_DISABLE_NIGHTLY_WARNING: "1" | ||
|
||
- name: Slither static analyser | ||
uses: crytic/[email protected] | ||
|
@@ -135,12 +137,16 @@ jobs: | |
- name: Set up LCOV | ||
uses: hrishikesh-kadam/setup-lcov@v1 | ||
with: | ||
ref: v2.2 | ||
ref: v2.3 | ||
|
||
- name: Run coverage | ||
run: NO_COLOR=1 forge coverage --report summary --report lcov --lcov-version 2.2 >> $GITHUB_STEP_SUMMARY | ||
run: | | ||
echo '```' >> $GITHUB_STEP_SUMMARY | ||
NO_COLOR=1 forge coverage --report summary --report lcov --lcov-version 2.3 >> $GITHUB_STEP_SUMMARY | ||
echo '```' >> $GITHUB_STEP_SUMMARY | ||
env: | ||
FOUNDRY_PROFILE: default | ||
FOUNDRY_DISABLE_NIGHTLY_WARNING: "1" | ||
|
||
# See https://github.com/ScopeLift/foundry-template/blob/fd3875d2e99a65dec19431723d6516b4ed76746e/.github/workflows/ci.yml#L49-L78. | ||
- name: Remove unnecessary directories | ||
|
@@ -155,7 +161,7 @@ jobs: | |
lcov-file: ./lcov.info | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# The following steps act as a temporary workaround, as LCOV `2.2` is not yet supported | ||
# The following steps act as a temporary workaround, as LCOV `2.3` is not yet supported | ||
# in `zgosalvez/github-actions-report-lcov@v4`: https://github.com/zgosalvez/github-actions-report-lcov/issues/168. | ||
- name: Set up LCOV `1.16` | ||
run: | | ||
|
@@ -170,6 +176,7 @@ jobs: | |
run: forge coverage --report lcov --lcov-version 1.16 | ||
env: | ||
FOUNDRY_PROFILE: default | ||
FOUNDRY_DISABLE_NIGHTLY_WARNING: "1" | ||
|
||
# See https://github.com/ScopeLift/foundry-template/blob/fd3875d2e99a65dec19431723d6516b4ed76746e/.github/workflows/ci.yml#L49-L78. | ||
- name: Remove unnecessary `test` directory | ||
|
Submodule forge-std
updated
3 files
+2 −0 | foundry.toml | |
+24 −0 | src/StdChains.sol | |
+3 −3 | test/StdChains.t.sol |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.