-
Notifications
You must be signed in to change notification settings - Fork 192
41 lines (33 loc) · 991 Bytes
/
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
name: Coverage
on:
pull_request:
push:
branches: [ master ]
jobs:
coverage:
name: Hardhat
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Common setup
uses: ./.github/workflows/setup
# Remove the integration tests from the test suite, as they require a mainnet fork to run properly
- name: Remove integration tests
run: rm -rf test/integration
- name: Collect coverage
run: yarn test:coverage
- name: Produce the coverage report
uses: insightsengineering/coverage-action@v2
with:
path: ./coverage/cobertura-coverage.xml
publish: true
threshold: 95
diff: true
diff-branch: master
diff-storage: _core_coverage_reports
coverage-summary-title: "Hardhat Unit Tests Coverage Summary"
togglable-report: true