-
Notifications
You must be signed in to change notification settings - Fork 127
146 lines (126 loc) · 5.75 KB
/
coverage-protocols.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
name: Protocol test Coverage
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
protocols-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-protocols.sh
- name: Upload protocols coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./protocols/target/tarpaulin-reports
file: ./protocols/target/tarpaulin-reports/cobertura.xml
flags: protocols
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload binary_codec_sv2-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./protocols/target/tarpaulin-reports/codec-coverage
file: ./protocols/target/tarpaulin-reports/codec-coverage/cobertura.xml
flags: binary_codec_sv2-coverage
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload binary_sv2-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./protocols/target/tarpaulin-reports/binary-sv2-coverage
file: ./protocols/target/tarpaulin-reports/binary-sv2-coverage/cobertura.xml
flags: binary_sv2-coverage
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload binary_serde_sv2-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./protocols/target/tarpaulin-reports/serde-sv2-coverage
file: ./protocols/target/tarpaulin-reports/serde-sv2-coverage/cobertura.xml
flags: binary_serde_sv2-coverage
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload codec_sv2-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./protocols/target/tarpaulin-reports/codec-sv2-coverage
file: ./protocols/target/tarpaulin-reports/codec-sv2-coverage/cobertura.xml
flags: codec_sv2-coverage
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload common_messages_sv2-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./protocols/target/tarpaulin-reports/common-messages-coverage
file: ./protocols/target/tarpaulin-reports/common-messages-coverage/cobertura.xml
flags: common_messages_sv2-coverage
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload const_sv2-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./protocols/target/tarpaulin-reports/const-sv2-coverage
file: ./protocols/target/tarpaulin-reports/const-sv2-coverage/cobertura.xml
flags: const_sv2-coverage
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload framing_sv2-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./protocols/target/tarpaulin-reports/framing-sv2-coverage
file: ./protocols/target/tarpaulin-reports/framing-sv2-coverage/cobertura.xml
flags: framing_sv2-coverage
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload job_declaration_sv2-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./protocols/target/tarpaulin-reports/job-declaration-coverage
file: ./protocols/target/tarpaulin-reports/job-declaration-coverage/cobertura.xml
flags: job_declaration_sv2-coverage
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload noise_sv2-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./protocols/target/tarpaulin-reports/noise-sv2-coverage
file: ./protocols/target/tarpaulin-reports/noise-sv2-coverage/cobertura.xml
flags: noise_sv2-coverage
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload roles_logic_sv2-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./protocols/target/tarpaulin-reports/roles-logic-sv2-coverage
file: ./protocols/target/tarpaulin-reports/roles-logic-sv2-coverage/cobertura.xml
flags: roles_logic_sv2-coverage
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload v1-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./protocols/target/tarpaulin-reports/v1-coverage
file: ./protocols/target/tarpaulin-reports/v1-coverage/cobertura.xml
flags: v1-coverage
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload sv2_ffi-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./protocols/target/tarpaulin-reports/sv2-ffi-coverage
file: ./protocols/target/tarpaulin-reports/sv2-ffi-coverage/cobertura.xml
flags: sv2_ffi-coverage
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload template_distribution_sv2-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./protocols/target/tarpaulin-reports/template-distribution-coverage
file: ./protocols/target/tarpaulin-reports/template-distribution-coverage/cobertura.xml
flags: template_distribution_sv2-coverage
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload mining-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./protocols/target/tarpaulin-reports/mining-coverage
file: ./protocols/target/tarpaulin-reports/mining-coverage/cobertura.xml
flags: mining-coverage
token: ${{ secrets.CODECOV_TOKEN }}