This repository has been archived by the owner on Mar 19, 2024. It is now read-only.
14 maintain event subscribers in a priority queue #63
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: Code Coverage | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
code_coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout project | |
uses: actions/checkout@v4 | |
- name: Update local toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: stable | |
components: clippy,rustfmt | |
- name: Rust cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update; | |
sudo apt-get install -y \ | |
libasound2-dev \ | |
portaudio19-dev \ | |
build-essential \ | |
libpulse-dev \ | |
libdbus-1-dev \ | |
libudev-dev \ | |
; | |
- name: Install cargo-llvm-cov | |
uses: taiki-e/install-action@0087e57cc32309b88e642e6fd964bafa2c563504 # v2.8.15 | |
with: | |
tool: [email protected] | |
- name: Generate code coverage | |
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: lcov.info | |
fail_ci_if_error: true |