mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
Grcov with coverall
This commit is contained in:
8
.github/actions-rs/grcov.yml
vendored
Normal file
8
.github/actions-rs/grcov.yml
vendored
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
branch: false
|
||||||
|
ignore-not-existing: true
|
||||||
|
llvm: true
|
||||||
|
output-type: lcov
|
||||||
|
ignore:
|
||||||
|
- "/*"
|
||||||
|
- "C:/*"
|
||||||
|
- "../*"
|
||||||
28
.github/workflows/coverage.yml
vendored
28
.github/workflows/coverage.yml
vendored
@@ -12,11 +12,25 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
- name: Setup rust toolchain
|
||||||
- name: Run cargo-tarpaulin
|
uses: actions-rs/toolchain@v1
|
||||||
uses: actions-rs/tarpaulin@v0.1
|
|
||||||
with:
|
with:
|
||||||
args: "--ignore-tests --features githubActions -- --test-threads 1"
|
toolchain: nightly
|
||||||
|
override: true
|
||||||
- name: Upload to codecov.io
|
- name: Run tests
|
||||||
uses: codecov/codecov-action@v1
|
uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: test
|
||||||
|
args: --all-features --no-fail-fast
|
||||||
|
env:
|
||||||
|
CARGO_INCREMENTAL: "0"
|
||||||
|
RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests"
|
||||||
|
RUSTDOCFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests"
|
||||||
|
- name: Coverage with grcov
|
||||||
|
id: coverage
|
||||||
|
uses: actions-rs/grcov@v0.1
|
||||||
|
- name: Coveralls
|
||||||
|
uses: coverallsapp/github-action@v1.1.1
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
path-to-lcov: ${{ steps.coverage.outputs.report }}
|
||||||
|
|||||||
Reference in New Issue
Block a user