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 out lower bounds.
  • Loading branch information
konstin committed Jan 27, 2025
1 parent 0bc2c0c commit b33b9ef
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 6 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
24 changes: 21 additions & 3 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 = { git = "https://github.com/ron-rs/ron/", branch = "minimup-deps" }
varisat = "0.2.2"
version-ranges = { version = "0.1.0", path = "version-ranges", features = ["proptest"] }

Expand Down

0 comments on commit b33b9ef

Please sign in to comment.