Skip to content

Merge pull request #603 from wcampbell0x2a/223-duplicate-data-setting… #1730

Merge pull request #603 from wcampbell0x2a/223-duplicate-data-setting…

Merge pull request #603 from wcampbell0x2a/223-duplicate-data-setting… #1730

Workflow file for this run

name: Coverage
on: [pull_request, push]
permissions:
contents: read
jobs:
coverage:
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
strategy:
matrix:
toolchain:
- stable
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- name: Populate cache
uses: ./.github/workflows/cache
- run: sudo apt-get install -y squashfs-tools
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@e8c64729e2a2a2c3cfa6751fa496b34ca19f390c # cargo-llvm-cov
# generate release builds of the testable binaries
# this is meant to actually run the binary, so this will fail but the binary will be built
- run: cargo llvm-cov run --bin replace-backhand --no-clean --release || true
- run: cargo llvm-cov run --bin add-backhand --no-clean --release || true
- run: cargo llvm-cov run --bin unsquashfs-backhand --no-clean --release || true
# run coverage on tests
- run: cargo llvm-cov --workspace --codecov --output-path codecov.json --features __test_unsquashfs --release --no-clean -- --skip slow
- name: Upload coverage to Codecov
uses: codecov/codecov-action@5ecb98a3c6b747ed38dc09f787459979aebb39be # v4.3.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: codecov.json
fail_ci_if_error: true