-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (40 loc) · 1.21 KB
/
coverage.yml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Coverage
on: [push]
concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true
env:
FOUNDRY_PROFILE: ci
ARB_SEPOLIA_RPC: ${{ secrets.ARB_SEPOLIA_RPC }}
ARB_MAINNET_RPC: ${{ secrets.ARB_MAINNET_RPC }}
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: "yarn"
- name: Install dependencies
run: yarn --frozen-lockfile --network-concurrency 1
- name: Install forge dependencies
run: forge install
- name: Precompile using 0.8.19 and via-ir=false
run: yarn build
- name: Install lcov (coverage dependency)
run: sudo apt-get update && sudo apt-get install lcov -y
- name: Run Coverage
shell: bash
run: yarn test:coverage
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
slug: open-dollar/od-relayer