Skip to content

Commit a873551

Browse files
author
Johanna
committed
update githib workflow
1 parent 1d57982 commit a873551

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

.github/configs/grcov.yml

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
branch: true
1+
branch: false
22
ignore-not-existing: true
33
llvm: true
4-
filter: covered
54
output-type: lcov
6-
output-path: ./lcov.info
7-
excl-line: "#\\[cfg\\(test\\)\\]"
8-
excl-start: "mod tests \\{"
9-
excl-stop: "\\}"git
5+
output-file: ./lcov.info

.github/workflows/codecov.yml

+13-6
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,16 @@ env:
1010
CARGO_TERM_COLOR: always
1111

1212
jobs:
13-
codecov:
13+
build:
14+
1415
runs-on: ubuntu-latest
16+
1517
steps:
1618
- uses: actions/checkout@v3
1719
- uses: actions-rs/toolchain@v1
1820
with:
1921
toolchain: nightly
2022
override: true
21-
components: llvm-tools-preview
2223
- name: Build
2324
run: cargo build --verbose
2425
- name: Run tests
@@ -27,13 +28,19 @@ jobs:
2728
CARGO_INCREMENTAL: '0'
2829
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
2930
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
30-
RUST_BACKTRACE: 'full'
3131
- name: rust-grcov
32-
uses: xnuter/grcov@master
32+
# You may pin to the exact commit or the version.
33+
# uses: actions-rs/grcov@bb47b1ed7883a1502fa6875d562727ace2511248
34+
uses: actions-rs/[email protected]
3335
with:
3436
config: .github/config/grcov.yml
35-
- name: Upload coverage to Codecov
36-
uses: codecov/codecov-action@v3
37+
- name: Codecov
38+
# You may pin to the exact commit or the version.
39+
# uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378
40+
uses: codecov/[email protected]
3741
with:
42+
# Repository upload token - get it from codecov.io. Required only for private repositories
43+
token: ${{ secrets.CODECOV_TOKEN }}
44+
# Specify whether the Codecov output should be verbose
3845
verbose: true
3946
fail_ci_if_error: true

0 commit comments

Comments
 (0)