From 6a0e23c6548df01b7a1b8c65eee8a456d6f0f611 Mon Sep 17 00:00:00 2001 From: Alice Ryhl Date: Wed, 11 Nov 2020 23:08:34 +0100 Subject: ci: minimal version check (#3131) --- .github/workflows/ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to '.github') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 07f6d2a1..9bf58b4a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -181,6 +181,26 @@ jobs: - name: "test --workspace --all-features" run: cargo check --workspace --all-features + minimal-versions: + name: minimal-versions + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: ${{ env.nightly }} + override: true + - name: Install cargo-hack + run: cargo install cargo-hack + - name: "check --all-features -Z 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 check --all-features + fmt: name: fmt runs-on: ubuntu-latest -- cgit v1.2.3