Skip to content

Updage coverage badge to avoid Github caching #38

Updage coverage badge to avoid Github caching

Updage coverage badge to avoid Github caching #38

Workflow file for this run

name: Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: macos-latest
environment: Coverage
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Select toolchain
uses: dtolnay/rust-toolchain@nightly
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Test with coverage
run: cargo llvm-cov --all-features --no-fail-fast --lcov --output-path lcov.info
env:
CARGO_INCREMENTAL: '0'
- name: Coveralls upload
uses: coverallsapp/github-action@v2
with:
path-to-lcov: ${{ steps.coverage.outputs.report }}