From 304b130f986c67aeabcb79c40308e1f95cf2794f Mon Sep 17 00:00:00 2001 From: Dave Grantham Date: Mon, 17 Aug 2026 22:27:17 -0600 Subject: [PATCH] workflow conformity Signed-off-by: Dave Grantham --- .github/workflows/rust.yml | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 970370f..191a249 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -2,9 +2,9 @@ name: Rust on: push: - branches: ["main"] + branches: ["master"] pull_request: - branches: ["main"] + branches: ["master"] env: CARGO_TERM_COLOR: always @@ -62,6 +62,30 @@ jobs: run: cargo build --no-default-features --target thumbv6m-none-eabi shell: bash + coverage: + name: Coverage + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Install Rust Toolchain (stable) + uses: dtolnay/rust-toolchain@stable + with: + components: llvm-tools-preview + + - name: Install cargo-llvm-cov + run: cargo install cargo-llvm-cov + + - name: Run coverage + run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4 + with: + files: lcov.info + fail_ci_if_error: false + audit: name: Security Audit runs-on: ubuntu-latest @@ -76,4 +100,4 @@ jobs: run: cargo install cargo-audit - name: Run cargo audit - run: cargo audit \ No newline at end of file + run: cargo audit