Added certora CI workflow [PE-11] (#304) #390
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: Coverage | |
on: | |
push: | |
paths: | |
- "contracts/**" | |
- "lib/**" | |
- ".github/**" | |
- "codecov.yml" | |
jobs: | |
run-coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install foundry | |
uses: onbjerg/foundry-toolchain@v1 | |
with: | |
version: nightly-de33b6af53005037b463318d2628b5cfcaf39916 | |
- name: Run coverage | |
run: forge coverage --report lcov && mv lcov.info lcov.txt | |
env: | |
FOUNDRY_FUZZ_RUNS: 1500 | |
MAINNET_FORK_RPC_URL: ${{ secrets.MAINNET_FORK_RPC_URL }} | |
- name: Update lcov report | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./lcov.txt | |
fail_ci_if_error: true | |
verbose: false |