sqlite-diff-rs 0.1.4

Build SQLite changeset and patchset binary formats programmatically, without SQLite
Documentation
name: Coverage

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

env:
  CARGO_TERM_COLOR: always

jobs:
  coverage:
    name: Code Coverage
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6

      - name: Install Rust nightly
        uses: dtolnay/rust-toolchain@nightly
        with:
          components: llvm-tools-preview

      - name: Install cargo-llvm-cov
        uses: taiki-e/install-action@cargo-llvm-cov

      - name: Cache cargo registry and build
        uses: Swatinem/rust-cache@v2

      - name: Generate main coverage report
        run: cargo llvm-cov --all-features --workspace --branch --tests --benches --lcov --output-path lcov-main.info

      - name: Generate diesel E2E Sqlite coverage report
        run: cargo llvm-cov --manifest-path integration-tests/diesel-e2e/Cargo.toml --branch --test sqlite_e2e --lcov --output-path lcov-diesel-e2e.info

      - name: Upload coverage to Codecov
        uses: codecov/codecov-action@v6
        with:
          files: lcov-main.info,lcov-diesel-e2e.info
          fail_ci_if_error: false
        env:
          CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}