chore(deps): bump pastey from 0.2.1 to 0.2.2 in the dependencies group #256
Workflow file for this run
This file contains hidden or 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: Codecov | |
| concurrency: | |
| # Ensure only one Codecov analysis runs per branch/ref | |
| group: codecov-${{ github.ref_name }} | |
| cancel-in-progress: true | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| # Least-privilege permissions | |
| permissions: | |
| contents: read | |
| checks: write | |
| pull-requests: write | |
| jobs: | |
| coverage: | |
| name: Code Coverage | |
| runs-on: ubuntu-latest | |
| env: | |
| CARGO_LLVM_COV_VERSION: "0.8.5" | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 # Needed for Codecov diff analysis | |
| - name: Install Rust toolchain | |
| uses: actions-rust-lang/setup-rust-toolchain@2b1f5e9b395427c92ee4e3331786ca3c37afe2d7 # v1.16.0 | |
| with: | |
| cache: true # toolchain/components are specified in rust-toolchain.toml | |
| - name: Install LLVM coverage tools | |
| run: rustup component add llvm-tools-preview | |
| - name: Cache cargo-llvm-cov | |
| uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 | |
| with: | |
| path: ~/.cargo/bin/cargo-llvm-cov | |
| key: cargo-llvm-cov-${{ runner.os }}-${{ env.CARGO_LLVM_COV_VERSION }} | |
| - name: Install cargo-llvm-cov | |
| run: | | |
| installed_version="" | |
| if command -v cargo-llvm-cov &> /dev/null; then | |
| installed_version="$(cargo llvm-cov --version)" | |
| installed_version="${installed_version#cargo-llvm-cov }" | |
| fi | |
| if [ "$installed_version" != "$CARGO_LLVM_COV_VERSION" ]; then | |
| cargo install cargo-llvm-cov --locked --version "${CARGO_LLVM_COV_VERSION}" | |
| fi | |
| - name: Install just | |
| uses: taiki-e/install-action@055f5df8c3f65ea01cd41e9dc855becd88953486 # v2.75.18 | |
| with: | |
| tool: just | |
| - name: Run coverage | |
| run: | | |
| mkdir -p coverage | |
| chmod 755 coverage | |
| echo "::group::Running coverage" | |
| # Single source of truth: coverage configuration lives in justfile | |
| just coverage-ci | |
| echo "::endgroup::" | |
| echo "::group::Coverage verification" | |
| ls -la coverage/ || true | |
| if [ ! -f coverage/cobertura.xml ]; then | |
| echo "::error::coverage/cobertura.xml not found. cargo-llvm-cov failed to generate XML output." | |
| exit 2 | |
| fi | |
| echo "::notice::Coverage report generated successfully: $(wc -l < coverage/cobertura.xml) lines" | |
| echo "::endgroup::" | |
| env: | |
| RUST_BACKTRACE: 1 | |
| - name: Upload coverage to Codecov | |
| if: ${{ success() && hashFiles('coverage/cobertura.xml') != '' }} | |
| uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0 | |
| with: | |
| files: coverage/cobertura.xml | |
| flags: unittests | |
| name: codecov-umbrella | |
| fail_ci_if_error: false | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Archive coverage results | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| if: always() | |
| with: | |
| name: coverage-report | |
| path: coverage/ |