Skip to content

Commit affc715

Browse files
authored
Merge pull request #2 from MidasLamb/feature/replace-coverage
Replaced coverall by codecov.io
2 parents ac37793 + 132d597 commit affc715

File tree

2 files changed

+40
-66
lines changed

2 files changed

+40
-66
lines changed

.github/workflows/coverage.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
pull_request:
6+
branches:
7+
- master
8+
9+
name: Code coverage with grcov
10+
11+
jobs:
12+
grcov:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v2
18+
19+
- name: Install stable toolchain
20+
uses: actions-rs/toolchain@v1
21+
with:
22+
toolchain: stable
23+
override: true
24+
25+
- name: Run cargo-tarpaulin
26+
uses: actions-rs/[email protected]
27+
with:
28+
version: "0.15.0"
29+
args: "-- --test-threads 1"
30+
31+
- name: Upload to codecov.io
32+
uses: codecov/[email protected]
33+
with:
34+
token: ${{secrets.CODECOV_TOKEN}}
35+
36+
- name: Archive code coverage results
37+
uses: actions/upload-artifact@v1
38+
with:
39+
name: code-coverage-report
40+
path: cobertura.xml

.github/workflows/grcov.yml

-66
This file was deleted.

0 commit comments

Comments
 (0)