chore(deps): bump tower-sessions to 0.15 #4031
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: Rust CI | |
| on: | |
| push: | |
| pull_request: | |
| schedule: | |
| - cron: "0 0 * * *" | |
| workflow_dispatch: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| CARGO_INCREMENTAL: 0 | |
| # Required by cargo-insta: https://insta.rs/docs/quickstart/#continuous-integration | |
| CI: true | |
| SCCACHE_GHA_ENABLED: true | |
| RUSTC_WRAPPER: sccache | |
| _RUST_STABLE: &rust_stable stable | |
| # Pinning the nightly version to a "stable" version to avoid CI breakages. | |
| _RUST_NIGHTLY: &rust_nightly nightly-2025-11-11 | |
| # See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency. | |
| # This will ensure that only one commit will be running tests at a time on each PR. | |
| concurrency: | |
| group: ${{ github.ref }}-${{ github.workflow }} | |
| cancel-in-progress: true | |
| jobs: | |
| check: | |
| # Run on external PRs and pushes to branches on the repo | |
| # This is to avoid double running on PRs from internal branches | |
| if: github.event_name == 'push' || github.event_name == 'schedule' || github.event.pull_request.head.repo.full_name != github.repository | |
| name: Cargo check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v6 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: stable | |
| - name: Cache Cargo registry | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| shared-key: 'rust-ci' | |
| cache-bin: 'false' | |
| - name: Run sccache-cache | |
| uses: mozilla-actions/sccache-action@v0.0.9 | |
| - name: Run cargo check | |
| run: cargo check --all-targets --all-features | |
| build: | |
| if: github.event_name == 'push' || github.event_name == 'schedule' || github.event.pull_request.head.repo.full_name != github.repository | |
| strategy: | |
| matrix: | |
| rust: [stable, nightly, MSRV] | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| include: | |
| - rust: stable | |
| version: *rust_stable | |
| - rust: nightly | |
| version: *rust_nightly | |
| - rust: MSRV | |
| version: "1.88" # MSRV | |
| name: Build & test | |
| runs-on: ${{ matrix.os }} | |
| continue-on-error: ${{ matrix.rust == 'nightly' }} | |
| needs: ["check"] | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v6 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: ${{ matrix.version }} | |
| - name: Cache Cargo registry | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| shared-key: 'rust-ci' | |
| cache-bin: 'false' | |
| - name: Run sccache-cache | |
| uses: mozilla-actions/sccache-action@v0.0.9 | |
| - name: Install cargo-nextest | |
| uses: taiki-e/install-action@v2 | |
| with: | |
| tool: nextest | |
| - name: Fetch dependencies | |
| run: cargo +${{ matrix.version }} fetch --locked | |
| - name: Build | |
| run: cargo +${{ matrix.version }} build --all-features --tests | |
| - name: Test | |
| run: cargo +${{ matrix.version }} nextest run --all-features | |
| # Nextest does not support doc tests as in stable Rust | |
| # they are not exposed in the same way as normal tests. | |
| # https://github.com/nextest-rs/nextest/issues/16 | |
| - name: Test docs | |
| run: cargo +${{ matrix.version }} test --all-features --doc | |
| clippy: | |
| if: github.event_name == 'push' || github.event_name == 'schedule' || github.event.pull_request.head.repo.full_name != github.repository | |
| name: Clippy lint checks | |
| runs-on: ubuntu-latest | |
| needs: ["check"] | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v6 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: stable | |
| components: clippy | |
| - name: Cache Cargo registry | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| shared-key: 'rust-ci' | |
| cache-bin: 'false' | |
| save-if: 'false' | |
| - name: Run sccache-cache | |
| uses: mozilla-actions/sccache-action@v0.0.9 | |
| - name: Run clippy | |
| run: cargo clippy --no-deps --all-targets -- -D warnings | |
| external-deps: | |
| if: github.event_name == 'push' || github.event_name == 'schedule' || github.event.pull_request.head.repo.full_name != github.repository | |
| name: Test with external dependencies | |
| runs-on: ubuntu-latest | |
| needs: ["check"] | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v6 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| # cot_macros ui tests require nightly | |
| toolchain: *rust_nightly | |
| - name: Cache Cargo registry | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| shared-key: 'rust-ci' | |
| cache-bin: 'false' | |
| save-if: 'false' | |
| - name: Run sccache-cache | |
| uses: mozilla-actions/sccache-action@v0.0.9 | |
| - name: Install cargo-nextest | |
| uses: taiki-e/install-action@v2 | |
| with: | |
| tool: nextest | |
| - name: Build | |
| run: cargo build --all-features --tests | |
| - name: Run the external dependencies | |
| run: docker compose up -d --wait | |
| - name: Test | |
| run: cargo nextest run --all-features --run-ignored only | |
| - name: Test docs | |
| run: cargo test --all-features --doc | |
| coverage: | |
| if: github.event_name == 'push' || github.event_name == 'schedule' || github.event.pull_request.head.repo.full_name != github.repository | |
| name: Test coverage checks | |
| runs-on: ubuntu-latest | |
| needs: ["build"] | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v6 | |
| - name: Install LLVM | |
| run: sudo apt-get install -y llvm | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| # branch coverage is currently optional and requires nightly | |
| toolchain: *rust_nightly | |
| components: llvm-tools-preview | |
| - name: Reclaim disk space | |
| run: > | |
| sudo rm -rf \ | |
| /opt/hostedtoolcache/CodeQL \ | |
| /usr/local/.ghcup \ | |
| /usr/local/lib/android \ | |
| /usr/local/lib/dotnet \ | |
| /usr/local/lib/swift | |
| - name: Cache Cargo registry | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| shared-key: 'rust-ci' | |
| cache-bin: 'false' | |
| save-if: 'false' | |
| - name: Run sccache-cache | |
| uses: mozilla-actions/sccache-action@v0.0.9 | |
| - name: Run the external dependencies | |
| run: docker compose up -d | |
| - name: Install cargo-llvm-cov | |
| uses: taiki-e/install-action@cargo-llvm-cov | |
| - name: Generate code coverage | |
| run: cargo llvm-cov --all-features --workspace --branch --no-report -- --include-ignored | |
| - name: Generate code coverage - doctests | |
| run: cargo llvm-cov --all-features --workspace --branch --doc --no-report | |
| - name: Merge code coverage reports | |
| run: cargo llvm-cov report --codecov --output-path codecov.json | |
| - uses: codecov/codecov-action@v5 | |
| with: | |
| files: codecov.json | |
| flags: rust | |
| fail_ci_if_error: true | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| rustfmt: | |
| if: github.event_name == 'push' || github.event_name == 'schedule' || github.event.pull_request.head.repo.full_name != github.repository | |
| name: Code formatting checks | |
| runs-on: ubuntu-latest | |
| needs: ["check"] | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v6 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| # nightly-only rustfmt settings | |
| toolchain: *rust_nightly | |
| components: rustfmt | |
| - name: Cache Cargo registry | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| shared-key: 'rust-ci' | |
| cache-bin: 'false' | |
| save-if: 'false' | |
| - name: Run sccache-cache | |
| uses: mozilla-actions/sccache-action@v0.0.9 | |
| - name: Run fmt | |
| run: cargo fmt --all -- --check | |
| machete: | |
| if: github.event_name == 'push' || github.event_name == 'schedule' || github.event.pull_request.head.repo.full_name != github.repository | |
| name: Machete dependencies checks | |
| runs-on: ubuntu-latest | |
| needs: ["check"] | |
| env: | |
| RUSTC_WRAPPER: "" | |
| SCCACHE_GHA_ENABLED: "" | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v6 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: stable | |
| - name: Run cargo-machete | |
| uses: bnjbvr/cargo-machete@v0.9.1 | |
| minimal-versions: | |
| if: github.event_name == 'push' || github.event_name == 'schedule' || github.event.pull_request.head.repo.full_name != github.repository | |
| name: Minimal dependency versions build | |
| runs-on: ubuntu-latest | |
| needs: ["check"] | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v6 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| # the `-Z` flag is only accepted on the nightly channel of Cargo | |
| toolchain: *rust_nightly | |
| - name: Cache Cargo registry | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| shared-key: 'rust-ci' | |
| cache-bin: 'false' | |
| save-if: 'false' | |
| - name: Install cargo-hack | |
| uses: taiki-e/install-action@cargo-hack | |
| - name: Run sccache-cache | |
| uses: mozilla-actions/sccache-action@v0.0.9 | |
| - name: Run cargo check with minimal versions | |
| run: | | |
| # Remove dev-dependencies from Cargo.toml to prevent the next `cargo update` | |
| # from determining minimal versions based on dev-dependencies. | |
| cargo hack --remove-dev-deps --workspace | |
| # Update Cargo.lock to minimal version dependencies. | |
| cargo update -Z minimal-versions | |
| cargo hack check --all-features --ignore-private | |
| build-feature-power-set: | |
| if: github.event_name == 'push' || github.event_name == 'schedule' || github.event.pull_request.head.repo.full_name != github.repository | |
| name: Build with each feature combination | |
| runs-on: ubuntu-latest | |
| needs: ["check"] | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v6 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: stable | |
| - name: Cache Cargo registry | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| shared-key: 'rust-ci' | |
| cache-bin: 'false' | |
| save-if: 'false' | |
| - name: Install cargo-hack | |
| uses: taiki-e/install-action@cargo-hack | |
| - name: Run sccache-cache | |
| uses: mozilla-actions/sccache-action@v0.0.9 | |
| - name: Run cargo check with every combination of features | |
| run: cargo hack check --feature-powerset --depth 3 --exclude-features db --no-dev-deps | |
| miri: | |
| if: github.event_name == 'push' || github.event_name == 'schedule' || github.event.pull_request.head.repo.full_name != github.repository | |
| name: Miri test | |
| runs-on: ubuntu-latest | |
| needs: ["build"] | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v6 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| # miri requires nightly | |
| toolchain: *rust_nightly | |
| components: miri | |
| - name: Cache Cargo registry | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| shared-key: 'rust-ci' | |
| cache-bin: 'false' | |
| save-if: 'false' | |
| - name: Install cargo-nextest | |
| uses: taiki-e/install-action@v2 | |
| with: | |
| tool: nextest | |
| - name: Miri setup | |
| run: cargo miri setup | |
| - name: Miri test | |
| run: cargo miri nextest run --no-fail-fast --all-features | |
| env: | |
| MIRIFLAGS: -Zmiri-disable-isolation | |
| cargo-deny: | |
| if: github.event_name == 'push' || github.event_name == 'schedule' || github.event.pull_request.head.repo.full_name != github.repository | |
| name: License check | |
| runs-on: ubuntu-latest | |
| env: | |
| SCCACHE_GHA_ENABLED: "" | |
| RUSTC_WRAPPER: "" | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v6 | |
| - name: Check licenses | |
| uses: EmbarkStudios/cargo-deny-action@v2 | |
| with: | |
| log-level: warn | |
| command: check licenses | |
| semver-check: | |
| if: github.event_name == 'pull_request' | |
| name: Semver compatibility check | |
| runs-on: ubuntu-latest | |
| env: | |
| RUSTC_WRAPPER: "" | |
| SCCACHE_GHA_ENABLED: "" | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: stable | |
| - name: Cache Cargo registry | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| shared-key: 'rust-ci' | |
| cache-bin: 'false' | |
| save-if: 'false' | |
| - name: Run cargo-semver-checks | |
| uses: obi1kenobi/cargo-semver-checks-action@v2.8 | |
| with: | |
| rust-toolchain: manual | |
| baseline-rev: ${{ github.event.pull_request.base.sha }} | |
| shared-key: 'rust-ci' | |
| feature-group: all-features | |
| verbose: true |