Skip to content

Commit

Permalink
feat: upload and download lcov report
Browse files Browse the repository at this point in the history
  • Loading branch information
gomesalexandre committed Apr 9, 2024
1 parent 4e5d172 commit a31c8dc
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/foundry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,30 @@ jobs:
forge test -vvv
forge coverage --report lcov
id: test
- name: Upload coverage report
uses: actions/upload-artifact@v2
with:
name: lcov-report
path: foundry/lcov.info

coverage_report:
name: Enforce 100% coverage
needs: test-and-coverage
runs-on: ubuntu-latest
steps:
- name: Download coverage report
uses: actions/download-artifact@v2
with:
name: lcov-report
path: coverage

- name: Setup LCOV
uses: hrishikesh-kadam/setup-lcov@v1

- name: Report code coverage and check threshold
uses: zgosalvez/github-actions-report-lcov@v4.1.3
with:
coverage-files: 'foundry/lcov.info'
coverage-files: 'coverage/lcov.info'
minimum-coverage: 100
update-comment: false
id: coverage

0 comments on commit a31c8dc

Please sign in to comment.