2020-09-28 13:39:17 +02:00
|
|
|
---
|
|
|
|
on:
|
2021-09-14 18:59:20 +02:00
|
|
|
workflow_dispatch:
|
2020-09-28 13:39:17 +02:00
|
|
|
|
|
|
|
name: Execute code coverage
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
nightly-coverage:
|
2021-03-25 10:34:42 +01:00
|
|
|
runs-on: ubuntu-18.04
|
2020-09-28 13:39:17 +02:00
|
|
|
steps:
|
2022-06-28 22:21:41 +02:00
|
|
|
- uses: actions/checkout@v3
|
2020-09-28 13:39:17 +02:00
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: nightly
|
|
|
|
override: true
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: clean
|
|
|
|
- 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=unwind -Zpanic_abort_tests"
|
|
|
|
- uses: actions-rs/grcov@v0.1
|
|
|
|
- name: Upload coverage to Codecov
|
2022-06-28 22:21:35 +02:00
|
|
|
uses: codecov/codecov-action@v3
|
2020-09-28 13:39:17 +02:00
|
|
|
with:
|
|
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
|
|
file: ${{ steps.coverage.outputs.report }}
|
|
|
|
yml: ./codecov.yml
|
|
|
|
fail_ci_if_error: true
|