Skip to content

Commit 66f082b

Browse files
committed
ci: Add test job for -Zminimal-versions
Fixes #362
1 parent a26eb6e commit 66f082b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
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,cargo-hack
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' }}

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
66

77
## [Unreleased]
88

9+
### Fixes
10+
* ci: Check the tests pass with `-Zminimal-versions`
11+
912
## 2.8.1 - 2025-10-05
1013
This fixes an accidental breaking change in the v2.8.0 release,
1114
where the public API was changed from `erased_serde v0.4` to `erased_serde v0.3`.
@@ -21,7 +24,6 @@ I (@Techcable) apologize for this breakage and have yanked the 2.8.0 release due
2124
future version, but will be done so in a backwards compatible way.
2225
- Thanks to @demurgos for recognizing and fixing this in PR #359
2326
- Ensure compatibility with `-Zminimal-versions` flag by specifying minimal dependency versions (fixes #357)
24-
- Not (yet) tested in CI
2527

2628
## [2.8.0] - 2025-10-05
2729
This is the biggest slog release since 2.0. It fully preserves compatibility with prior releases.

0 commit comments

Comments
 (0)