Skip to content

Commit

Permalink
👷 fml 2
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Marco Caversaccio <[email protected]>
  • Loading branch information
pcaversaccio committed Dec 17, 2024
1 parent 0261041 commit 97ce0d8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/test-createx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ jobs:
lcov-file: ./lcov.info
github-token: ${{ secrets.GITHUB_TOKEN }}

# Temporary workaround for: https://github.com/zgosalvez/github-actions-report-lcov/issues/168.
# The following steps act as a temporary workaround, as LCOV `2.2` is not yet supported
# in `zgosalvez/github-actions-report-lcov@v4`: https://github.com/zgosalvez/github-actions-report-lcov/issues/168.
- name: Setup LCOV 1.16
run: |
wget https://github.com/linux-test-project/lcov/releases/download/v1.16/lcov-1.16.tar.gz
Expand All @@ -177,6 +178,15 @@ jobs:
lcov --version
sudo rm -rf lcov-1.16.tar.gz lcov-1.16
- name: Run coverage using LCOV 1.16
run: forge coverage --report lcov --lcov-version 1.16
env:
FOUNDRY_PROFILE: default

# See https://github.com/ScopeLift/foundry-template/blob/fd3875d2e99a65dec19431723d6516b4ed76746e/.github/workflows/ci.yml#L49-L78.
- name: Remove unnecessary `test` directory
run: lcov --remove lcov.info 'test/*' --output-file lcov.info --rc lcov_branch_coverage=1

- name: Verify minimum coverage
uses: zgosalvez/github-actions-report-lcov@v4
with:
Expand Down

0 comments on commit 97ce0d8

Please sign in to comment.