-
-
Notifications
You must be signed in to change notification settings - Fork 299
40 lines (38 loc) · 982 Bytes
/
code-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: Code Coverage
on:
push:
branches:
- master
jobs:
cover:
runs-on: ubuntu-20.04
services:
redis:
image: redis:5.0.7
ports:
- 6379:6379
options: --entrypoint redis-server
steps:
- uses: actions/checkout@v3
- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: Install Stable Toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.75.0
components: rustfmt
- name: Cache Rust
uses: Swatinem/rust-cache@v2
- name: Run cargo-tarpaulin
uses: actions-rs/[email protected]
with:
version: "0.18.0"
- name: Upload To codecov.io
uses: codecov/codecov-action@v3
with:
token: ${{secrets.CODECOV_TOKEN}}
- name: Archive Code Coverage Results
uses: actions/upload-artifact@v3
with:
name: code-coverage-report
path: cobertura.xml