Merge torrust/torrust-tracker#402: docs: update readme #100
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Coverage | |
on: | |
push: | |
pull_request: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
report: | |
name: Report | |
runs-on: ubuntu-latest | |
env: | |
CARGO_INCREMENTAL: "0" | |
RUSTFLAGS: "-Z profile -C codegen-units=1 -C inline-threshold=0 -C link-dead-code -C overflow-checks=off -C panic=abort -Z panic_abort_tests" | |
RUSTDOCFLAGS: "-Z profile -C codegen-units=1 -C inline-threshold=0 -C link-dead-code -C overflow-checks=off -C panic=abort -Z panic_abort_tests" | |
steps: | |
- id: checkout | |
name: Checkout Repository | |
uses: actions/checkout@v4 | |
- id: setup | |
name: Setup Toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: nightly | |
components: llvm-tools-preview | |
- id: cache | |
name: Enable Workflow Cache | |
uses: Swatinem/rust-cache@v2 | |
- id: tools | |
name: Install Tools | |
uses: taiki-e/install-action@v2 | |
with: | |
tool: grcov | |
- id: check | |
name: Run Build Checks | |
run: cargo check --workspace --all-targets --all-features | |
- id: test | |
name: Run Unit Tests | |
run: cargo test --workspace --all-targets --all-features | |
- id: coverage | |
name: Generate Coverage Report | |
uses: alekitto/grcov@v0.2 | |
- id: upload | |
name: Upload Coverage Report | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ${{ steps.coverage.outputs.report }} | |
verbose: true | |
fail_ci_if_error: true |