-
Notifications
You must be signed in to change notification settings - Fork 10
37 lines (31 loc) · 850 Bytes
/
Coverage.yaml
File metadata and controls
37 lines (31 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Coverage
on:
push:
paths:
- "contracts/**"
- "lib/**"
- ".github/**"
- "codecov.yml"
jobs:
run-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
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@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./lcov.txt
fail_ci_if_error: true
verbose: false