generated from AngleProtocol/boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 11
40 lines (33 loc) · 1.13 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
name: Coverage Report
on:
workflow_dispatch:
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Setup repo
uses: ./.github/actions/setup-repo
with:
registry-token: ${{ secrets.SDK_READ_ACCESS_TOKEN }}
- name: Compile foundry
run: forge build
- name: 'Install lcov'
run: 'sudo apt-get install lcov'
- name: 'Generate the coverage report using the unit and the integration tests'
run: 'bun ci:coverage'
env:
ETH_NODE_URI_OPTIMISM: ${{ secrets.ETH_NODE_URI_OPTIMISM }}
ETH_NODE_URI_ARBITRUM: ${{ secrets.ETH_NODE_URI_ARBITRUM }}
ETH_NODE_URI_MAINNET: ${{ secrets.ETH_NODE_URI_MAINNET }}
- name: 'Upload coverage report to Codecov'
uses: 'codecov/codecov-action@v3'
with:
files: './lcov.info'
token: ${{ secrets.CODECOV_TOKEN }}
- name: 'Add coverage summary'
run: |
echo "## Coverage result" >> $GITHUB_STEP_SUMMARY
echo "✅ Uploaded to Codecov" >> $GITHUB_STEP_SUMMARY