Skip to content

Instantly share code, notes, and snippets.

@lucas-manuel
Created August 28, 2022 01:59
Show Gist options
  • Save lucas-manuel/8507b7b4914c5d0106571b291d050ab9 to your computer and use it in GitHub Desktop.
Save lucas-manuel/8507b7b4914c5d0106571b291d050ab9 to your computer and use it in GitHub Desktop.
coverage_report:
name: Generate coverage report
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Foundry
uses: onbjerg/foundry-toolchain@v1
with:
version: nightly
- name: Install submodules
run: |
git config --global url."https://github.com/".insteadOf "git@github.com:"
git submodule update --init --recursive
- name: Generate coverage report
run: |
forge coverage --report lcov
- name: Report code coverage
uses: zgosalvez/github-actions-report-lcov@v1
with:
coverage-files: lcov.info
minimum-coverage: 90
artifact-name: code-coverage-report
github-token: ${{ secrets.GITHUB_TOKEN }}
working-directory: ./
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment