Updage coverage badge to avoid Github caching #38
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: 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 }} | |