Skip to content

Commit

Permalink
Test cargo minimal versions on CI
Browse files Browse the repository at this point in the history
With ron-rs/ron#557, we can test our lower bounds.
  • Loading branch information
konstin committed Jan 27, 2025
1 parent 0bc2c0c commit eb2eda4
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo build --verbose --workspace
- run: cargo test --all-features --workspace --verbose
- run: cargo build --workspace
- run: cargo test --all-features --workspace

clippy:
name: No warnings from Clippy
Expand Down Expand Up @@ -52,3 +52,13 @@ jobs:
env:
RUSTDOCFLAGS: -D warnings
run: cargo doc --workspace --no-deps --document-private-items

minimal-versions:
name: Tests pass
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- run: cargo +nightly update -Zminimal-versions
- run: cargo +nightly build --workspace
- run: cargo +nightly test --all-features --workspace
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ version-ranges = { version = "0.1.0", path = "version-ranges" }
criterion = { version = "2.7.2", package = "codspeed-criterion-compat" }
env_logger = "0.11.6"
proptest = "1.6.0"
ron = "=0.9.0-alpha.0"
ron = "0.9.0-alpha.1"
varisat = "0.2.2"
version-ranges = { version = "0.1.0", path = "version-ranges", features = ["proptest"] }

Expand Down
2 changes: 1 addition & 1 deletion version-ranges/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ serde = ["dep:serde", "smallvec/serde"]

[dev-dependencies]
proptest = "1.6.0"
ron = "=0.9.0-alpha.0"
ron = "=0.9.0-alpha.1"

0 comments on commit eb2eda4

Please sign in to comment.