Skip to content

ci: add tag-driven release workflow #10

ci: add tag-driven release workflow

ci: add tag-driven release workflow #10

Workflow file for this run

name: Coverage
# Workspace test coverage via cargo-llvm-cov, uploaded to Codecov.
#
# Required secrets:
# CODECOV_TOKEN — for private repos / authenticated uploads.
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust (stable)
uses: dtolnay/rust-toolchain@stable
with:
components: llvm-tools-preview
- name: Cache cargo registry and target
uses: Swatinem/rust-cache@v2
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate lcov.info
run: cargo llvm-cov --workspace --all-features --lcov --output-path lcov.info
- name: Upload to Codecov
uses: codecov/codecov-action@v4
with:
files: lcov.info
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}