Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Merge pull request #46 from hornvale/31-create-seed-string-service #103

Merge pull request #46 from hornvale/31-create-seed-string-service

Merge pull request #46 from hornvale/31-create-seed-string-service #103

Workflow file for this run

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@57aaba576a0253b74662df51e62715622f02127b # 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