deps(deps): Bump log from 0.4.32 to 0.4.33 #582
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: CI | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| # Cancel in-progress runs when new commits are pushed | |
| concurrency: | |
| group: "${{ github.workflow }}-${{ github.ref }}" | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| env: | |
| CARGO_TERM_COLOR: always | |
| CARGO_INCREMENTAL: 0 | |
| CARGO_PROFILE_DEV_DEBUG: line-tables-only | |
| RUSTFLAGS: "-Dwarnings" | |
| RUST_BACKTRACE: 1 | |
| jobs: | |
| test: | |
| name: Test (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Cache Rust dependencies | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| cache-bin: "false" | |
| - name: Install cargo-nextest | |
| uses: taiki-e/install-action@v2 | |
| with: | |
| tool: cargo-nextest | |
| - name: Run tests (Unix) | |
| if: runner.os != 'Windows' | |
| env: | |
| SKIP_INTEGRATION_TESTS: 1 | |
| run: | | |
| echo "Running tests with cargo nextest..." | |
| cargo nextest run --lib \ | |
| --test analyzer_tests --test complexity_tests --test core_metrics_tests \ | |
| --test debt_tests --test entropy_tests \ | |
| --status-level fail --final-status-level slow | |
| - name: Configure vendored OpenSSL prerequisites (Windows) | |
| if: runner.os == 'Windows' | |
| shell: pwsh | |
| run: | | |
| $perl = "C:\Strawberry\perl\bin\perl.exe" | |
| if (-not (Test-Path $perl)) { | |
| choco install strawberryperl --no-progress -y | |
| } | |
| & $perl -MLocale::Maketext::Simple -e 1 | |
| "PERL=$perl" >> $env:GITHUB_ENV | |
| "OPENSSL_SRC_PERL=$perl" >> $env:GITHUB_ENV | |
| - name: Run tests (Windows) | |
| if: runner.os == 'Windows' | |
| shell: pwsh | |
| env: | |
| SKIP_INTEGRATION_TESTS: 1 | |
| run: | | |
| Write-Output "Running tests with cargo nextest..." | |
| cargo nextest run --lib ` | |
| --test analyzer_tests ` | |
| --test complexity_tests --test core_metrics_tests ` | |
| --test debt_tests --test entropy_tests ` | |
| --status-level fail --final-status-level slow | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt | |
| - name: Cache Rust dependencies | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| cache-bin: "false" | |
| - name: Check formatting | |
| run: cargo fmt --all -- --check | |
| clippy: | |
| name: Clippy | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| security-events: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy | |
| - name: Cache Rust dependencies | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| cache-bin: "false" | |
| - name: Install SARIF tools | |
| run: cargo install clippy-sarif sarif-fmt --locked | |
| - name: Run Clippy with SARIF output | |
| run: > | |
| cargo clippy --workspace --all-features --all-targets --message-format=json | |
| | clippy-sarif | |
| | tee clippy-results.sarif | |
| | sarif-fmt | |
| continue-on-error: true | |
| - name: Upload SARIF | |
| uses: github/codeql-action/upload-sarif@v4 | |
| with: | |
| sarif_file: clippy-results.sarif | |
| wait-for-processing: true | |
| - name: Check for errors | |
| run: cargo clippy --all-targets --all-features -- -D warnings | |
| msrv: | |
| name: Check MSRV | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Cache Rust dependencies | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| cache-bin: "false" | |
| - name: Install cargo-hack | |
| uses: taiki-e/install-action@cargo-hack | |
| - name: Check MSRV | |
| run: cargo hack check --each-feature --locked --rust-version --workspace --all-targets --keep-going | |
| minimal-versions: | |
| name: Minimal versions | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install Rust stable | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Install Rust nightly | |
| uses: dtolnay/rust-toolchain@nightly | |
| - name: Cache Rust dependencies | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| cache-bin: "false" | |
| - name: Generate minimal lockfile | |
| run: cargo +nightly generate-lockfile -Z minimal-versions | |
| - name: Check with minimal versions | |
| run: cargo +stable check --workspace --all-features --locked | |
| feature-combinations: | |
| name: Feature combinations | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Cache Rust dependencies | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| cache-bin: "false" | |
| - name: Install cargo-hack | |
| uses: taiki-e/install-action@cargo-hack | |
| - name: Test each feature combination | |
| run: cargo hack check --each-feature --workspace --keep-going | |
| # Aggregation job that reports overall CI status | |
| ci: | |
| name: CI | |
| needs: [test, lint, clippy, msrv, minimal-versions, feature-combinations] | |
| runs-on: ubuntu-latest | |
| if: always() | |
| steps: | |
| - name: Failed | |
| run: exit 1 | |
| if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped') |