Skip to content

Commit e812a8a

Browse files
authored
Test cargo minimal versions on CI (#314)
With ron-rs/ron#557, we can test our lower bounds.
1 parent 0bc2c0c commit e812a8a

File tree

4 files changed

+22
-12
lines changed

4 files changed

+22
-12
lines changed

.github/workflows/ci.yml

+16-6
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ env:
1111

1212
jobs:
1313
test:
14-
name: Tests pass
14+
name: Tests
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v4
1818
- uses: dtolnay/rust-toolchain@stable
19-
- run: cargo build --verbose --workspace
20-
- run: cargo test --all-features --workspace --verbose
19+
- run: cargo build --workspace
20+
- run: cargo test --all-features --workspace
2121

2222
clippy:
23-
name: No warnings from Clippy
23+
name: Clippy
2424
runs-on: ubuntu-latest
2525
steps:
2626
- uses: actions/checkout@v4
@@ -33,7 +33,7 @@ jobs:
3333
run: cargo clippy --workspace
3434

3535
check_formatting:
36-
name: Source code is formatted
36+
name: Formatting
3737
runs-on: ubuntu-latest
3838
steps:
3939
- uses: actions/checkout@v4
@@ -43,7 +43,7 @@ jobs:
4343
- run: cargo fmt --all -- --check
4444

4545
check_documentation:
46-
name: Documentation builds successfully
46+
name: Docs
4747
runs-on: ubuntu-latest
4848
steps:
4949
- uses: actions/checkout@v4
@@ -52,3 +52,13 @@ jobs:
5252
env:
5353
RUSTDOCFLAGS: -D warnings
5454
run: cargo doc --workspace --no-deps --document-private-items
55+
56+
minimal-versions:
57+
name: Minimal versions
58+
runs-on: ubuntu-latest
59+
steps:
60+
- uses: actions/checkout@v4
61+
- uses: dtolnay/rust-toolchain@nightly
62+
- run: cargo +nightly update -Zminimal-versions
63+
- run: cargo +nightly build --workspace
64+
- run: cargo +nightly test --all-features --workspace

Cargo.lock

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ version-ranges = { version = "0.1.0", path = "version-ranges" }
3636
criterion = { version = "2.7.2", package = "codspeed-criterion-compat" }
3737
env_logger = "0.11.6"
3838
proptest = "1.6.0"
39-
ron = "=0.9.0-alpha.0"
39+
ron = "=0.9.0-alpha.1"
4040
varisat = "0.2.2"
4141
version-ranges = { version = "0.1.0", path = "version-ranges", features = ["proptest"] }
4242

version-ranges/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ serde = ["dep:serde", "smallvec/serde"]
1818

1919
[dev-dependencies]
2020
proptest = "1.6.0"
21-
ron = "=0.9.0-alpha.0"
21+
ron = "=0.9.0-alpha.1"

0 commit comments

Comments
 (0)