Merge pull request #55 from mantlenetworkio/afk/audit/oz-n-04-new #80
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
name: Forge Coverage Report | |
on: ["push", "pull_request"] | |
env: | |
FOUNDRY_PROFILE: ci | |
jobs: | |
forge: | |
strategy: | |
fail-fast: true | |
name: Foundry project | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Run Forge build | |
run: | | |
yarn | |
forge --version | |
forge build --sizes | |
id: build | |
- name: Install lcov | |
uses: hrishikesh-kadam/setup-lcov@v1.0.0 | |
- name: Run Forge coverage | |
run: | | |
forge coverage --report lcov && lcov --extract lcov.info -o lcov.info 'src/*' | |
id: coverage |