Skip to content

chore(deps): update softprops/action-gh-release action to v2.5.0 (#102) #181

chore(deps): update softprops/action-gh-release action to v2.5.0 (#102)

chore(deps): update softprops/action-gh-release action to v2.5.0 (#102) #181

Workflow file for this run

name: coverage
on:
push:
branches:
- main
paths-ignore:
- README.md
- CONTRIBUTING.md
pull_request:
branches:
- main
paths-ignore:
- README.md
- CONTRIBUTING.md
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -Cinstrument-coverage
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@e43a5023a747770bfcb71ae048541a681714b951 # v2.62.33
with:
tool: cargo-llvm-cov
- name: Cache cargo registry
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Cache target
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: target
key: ${{ runner.os }}-coverage-target-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-coverage-target-
- name: Run coverage
run: cargo llvm-cov --workspace --all-features --lcov --output-path lcov.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
fail_ci_if_error: true
flags: rust