-
Notifications
You must be signed in to change notification settings - Fork 127
89 lines (77 loc) · 3.18 KB
/
coverage-roles.yaml
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: Roles test Coverage
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
roles-coverage:
name: tarpaulin Test
runs-on: ubuntu-latest
container:
image: xd009642/tarpaulin:0.27.1-nightly
options: --security-opt seccomp=unconfined
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Generate code coverage
run: |
./scripts/coverage-roles.sh
- name: Upload roles coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./roles/target/tarpaulin-reports
file: ./roles/target/tarpaulin-reports/cobertura.xml
flags: roles
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload jd_client-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./roles/target/tarpaulin-reports/jd-client-coverage
file: ./roles/target/tarpaulin-reports/jd-client-coverage/cobertura.xml
flags: jd_client-coverage
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload jd_server-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./roles/target/tarpaulin-reports/jd-server-coverage
file: ./roles/target/tarpaulin-reports/jd-server-coverage/cobertura.xml
flags: jd_server-coverage
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload mining_device-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./roles/target/tarpaulin-reports/mining-device-coverage
file: ./rroles/target/tarpaulin-reports/mining-device-coverage/cobertura.xml
flags: mining_device-coverage
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload mining_proxy_sv2-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./roles/target/tarpaulin-reports/mining-proxy-coverage
file: ./roles/target/tarpaulin-reports/mining-proxy-coverage/cobertura.xml
flags: mining_proxy_sv2-coverage
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload pool_sv2-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./roles/target/tarpaulin-reports/pool-coverage
file: ./roles/target/tarpaulin-reports/pool-coverage/cobertura.xml
flags: pool_sv2-coverage
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload sv1-mining-device-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./roles/target/tarpaulin-reports/sv1-mining-device-coverage
file: ./roles/target/tarpaulin-reports/sv1-mining-device-coverage/cobertura.xml
flags: sv1-mining-device-coverage
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload translator_sv2-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./roles/target/tarpaulin-reports/translator-coverage
file: ./roles/target/tarpaulin-reports/translator-coverage/cobertura.xml
flags: translator_sv2-coverage
token: ${{ secrets.CODECOV_TOKEN }}