Skip to content

Commit 1558318

Browse files
committed
ci: Add test job for -Zminimal-versions
1 parent a26eb6e commit 1558318

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ jobs:
7979
toolchain: ${{ matrix.rust }}
8080
- uses: Swatinem/rust-cache@v2
8181
if: ${{ matrix.rust != 'nightly' }} # ineffective due to version key
82+
- uses: taiki-e/install-action@v2
83+
with:
84+
tool: cargo-minimal-versions
8285
- name: Check
8386
run: |
8487
cargo check --all-targets --verbose --no-default-features --features "${{ matrix.features }}"
@@ -94,6 +97,9 @@ jobs:
9497
# However, we can grant special exceptions for the Minimum Supported Rust Version
9598
# if there is a really good reason (like a dependency that requires a newer version).
9699
continue-on-error: false
100+
- name: Test (-Zminimal-versions)
101+
run:
102+
cargo minimal-versions test --all --verbose --no-default-features "${{ matrix.features }}"
97103
- name: rustdoc
98104
# Restrict to working on nightly/stable (old versions might have undefined types)
99105
if: ${{ matrix.rust == 'nightly' || matrix.rust == 'stable' }}

0 commit comments

Comments
 (0)