Skip to content

Commit

Permalink
🔁 Update lcov to Version 2.3
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Marco Caversaccio <[email protected]>
  • Loading branch information
pcaversaccio committed Jan 22, 2025
1 parent 8d1f1a4 commit c7ac8b2
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
os:
- ubuntu-latest
ruby_version:
- 3.3
- 3.4

steps:
- name: Checkout
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/test-contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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
Expand All @@ -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: |
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion contracts/lib/forge-std
32 changes: 16 additions & 16 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c7ac8b2

Please sign in to comment.