Skip to content

Commit bdb06a1

Browse files
committed
chore(ci): Verify version requirements
1 parent 045de93 commit bdb06a1

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/ci.yml

+19-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
permissions:
2424
contents: none
2525
name: CI
26-
needs: [test, msrv, lockfile, docs, rustfmt, clippy]
26+
needs: [test, msrv, lockfile, docs, rustfmt, clippy, minimal-versions]
2727
runs-on: ubuntu-latest
2828
if: "always()"
2929
steps:
@@ -65,6 +65,24 @@ jobs:
6565
- uses: taiki-e/install-action@cargo-hack
6666
- name: Default features
6767
run: cargo hack check --feature-powerset --locked --rust-version --ignore-private --workspace --all-targets
68+
minimal-versions:
69+
name: Minimal versions
70+
runs-on: ubuntu-latest
71+
steps:
72+
- name: Checkout repository
73+
uses: actions/checkout@v4
74+
- name: Install stable Rust
75+
uses: dtolnay/rust-toolchain@stable
76+
with:
77+
toolchain: stable
78+
- name: Install nightly Rust
79+
uses: dtolnay/rust-toolchain@stable
80+
with:
81+
toolchain: nightly
82+
- name: Downgrade dependencies to minimal versions
83+
run: cargo +nightly generate-lockfile -Z minimal-versions
84+
- name: Compile with minimal versions
85+
run: cargo +stable check --workspace --all-features --locked
6886
lockfile:
6987
runs-on: ubuntu-latest
7088
steps:

0 commit comments

Comments
 (0)