forked from ava-labs/avalanche-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (48 loc) · 1.42 KB
/
code-cov-report.yml
File metadata and controls
58 lines (48 loc) · 1.42 KB
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
53
54
55
56
57
58
name: Code Coverage Cron Report
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # Run daily at midnight UTC
jobs:
code_cov_report:
name: Code Coverage Report
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "16.x"
- name: Yarn Install
uses: nick-fields/retry@v2
with:
timeout_minutes: 10
max_attempts: 3
retry_on: error
command: yarn --cwd ./tests/e2e/hardhat
- name: Install Typescript
shell: bash
run: |
npm install -g typescript
npm install -g ts-node
npm install -g tsx
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Install Go dependencies
run: go mod download
- name: Unit Tests
working-directory: ${{ github.workspace }}
run: |
scripts/unit_test.sh
- name: E2E Tests
working-directory: ${{ github.workspace }}
run: |
scripts/run_e2e_suites_for_cov.sh
# TODO: at the moment the coverage report is printed to the console
# we want to report it to PR as a comment later
- name: Generate Code Coverage Report
run: |
scripts/report_coverage.sh