Remove hello world and style input field #30
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: Generate Code Coverage | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- edited | |
paths: | |
- ".github/workflows/code-coverage.yaml" | |
- "src/**" | |
- "rust-toolchain.toml" | |
- "Cargo.toml" | |
- "Cargo.lock" | |
- "Trunk.toml" | |
push: | |
branches: | |
- "main" | |
- "epic/**" | |
- "integration/**" | |
paths: | |
- ".github/workflows/code-coverage.yaml" | |
- "src/**" | |
- "rust-toolchain.toml" | |
- "Cargo.toml" | |
- "Cargo.lock" | |
- "Trunk.toml" | |
jobs: | |
generate-coverage: | |
name: Generate Code Coverage | |
runs-on: self-hosted | |
env: | |
CARGO_HOME: "/media/nicholas/rust/.cargo" | |
RUSTUP_HOME: "/media/nicholas/rust/.rustup" | |
RUSTC_WRAPPER: "/media/nicholas/rust/.cargo/bin/sccache" | |
CARGO_INCREMENTAL: 0 | |
steps: | |
- name: Skip Duplicate Actions | |
id: skip_check | |
uses: fkirc/skip-duplicate-actions@v5 | |
- if: steps.skip_check.outputs.should_skip != 'true' | |
name: Checkout | |
uses: actions/[email protected] | |
- if: steps.skip_check.outputs.should_skip != 'true' | |
name: Code Coverage | |
run: cargo tarpaulin --bin john-de-silencio --out lcov --output-dir coverage/ | |
- if: steps.skip_check.outputs.should_skip != 'true' | |
name: Upload coverage reports to Codecov | |
run: codecov upload-process --fail-on-error --disable-search -n 'code-coverage'-${{ github.run_id }} -t ${{ secrets.CODECOV_TOKEN }} -f coverage/lcov.info |