Skip to content

Commit 73e0205

Browse files
committed
Test MSRV 1.54 on CI
1 parent a95ddb1 commit 73e0205

File tree

6 files changed

+47
-13
lines changed

6 files changed

+47
-13
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,39 @@ jobs:
5353
# Testing #
5454
###########
5555

56+
msrv:
57+
name: MSRV
58+
if: ${{ github.ref == 'refs/heads/main'
59+
|| startsWith(github.ref, 'refs/tags/v')
60+
|| !contains(github.event.head_commit.message, '[skip ci]') }}
61+
strategy:
62+
fail-fast: false
63+
matrix:
64+
msrv: ['1.54.0']
65+
crate:
66+
- cucumber-codegen
67+
- cucumber
68+
os:
69+
- ubuntu
70+
- macOS
71+
- windows
72+
runs-on: ${{ matrix.os }}-latest
73+
steps:
74+
- uses: actions/checkout@v2
75+
- uses: actions-rs/toolchain@v1
76+
with:
77+
profile: minimal
78+
toolchain: nightly
79+
- uses: actions-rs/toolchain@v1
80+
with:
81+
profile: minimal
82+
toolchain: ${{ matrix.msrv }}
83+
override: true
84+
85+
- run: cargo +nightly update -Z minimal-versions
86+
87+
- run: make test.cargo crate=${{ matrix.crate }}
88+
5689
test:
5790
if: ${{ github.ref == 'refs/heads/main'
5891
|| startsWith(github.ref, 'refs/tags/v')

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ macros = ["cucumber-codegen", "inventory"]
3232
async-trait = "0.1.40"
3333
atty = "0.2.14"
3434
clap = { version = "=3.0.0-beta.5", features = ["derive"] }
35-
console = "0.14.1"
35+
console = "0.15"
3636
derive_more = { version = "0.99.16", features = ["deref", "deref_mut", "display", "error", "from"], default_features = false }
3737
either = "1.6"
3838
futures = "0.3.17"
3939
gherkin = { package = "gherkin_rust", version = "0.10" }
40-
globwalk = "0.8"
40+
globwalk = "0.8.1"
4141
itertools = "0.10"
42-
linked-hash-map = "0.5"
42+
linked-hash-map = "0.5.3"
4343
once_cell = { version = "1.8", features = ["parking_lot"] }
4444
regex = "1.5"
4545
sealed = "0.3"
@@ -49,7 +49,7 @@ cucumber-codegen = { version = "0.10", path = "./codegen", optional = true }
4949
inventory = { version = "0.1.10", optional = true }
5050

5151
[dev-dependencies]
52-
tokio = { version = "1.0", features = ["macros", "rt-multi-thread", "time"] }
52+
tokio = { version = "1.12", features = ["macros", "rt-multi-thread", "time"] }
5353

5454
[[test]]
5555
name = "wait"

Makefile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ cargo.doc:
4646
ifeq ($(clean),yes)
4747
@rm -rf target/doc/
4848
endif
49-
cargo +stable doc $(if $(call eq,$(crate),),--workspace,-p $(crate)) \
49+
cargo doc $(if $(call eq,$(crate),),--workspace,-p $(crate)) \
5050
--all-features \
5151
$(if $(call eq,$(private),no),,--document-private-items) \
5252
$(if $(call eq,$(open),no),,--open)
@@ -67,7 +67,7 @@ cargo.fmt:
6767
# make cargo.lint
6868

6969
cargo.lint:
70-
cargo +stable clippy --workspace -- -D clippy::pedantic -D warnings
70+
cargo clippy --workspace -- -D clippy::pedantic -D warnings
7171

7272

7373

@@ -82,8 +82,7 @@ cargo.lint:
8282
# make test.cargo [crate=<crate-name>]
8383

8484
test.cargo:
85-
cargo +stable test $(if $(call eq,$(crate),),--workspace,-p $(crate)) \
86-
--all-features
85+
cargo test $(if $(call eq,$(crate),),--workspace,-p $(crate)) --all-features
8786

8887

8988
# Run Rust tests of Book.
@@ -92,7 +91,7 @@ test.cargo:
9291
# make test.book
9392

9493
test.book:
95-
cargo +stable test --manifest-path book/tests/Cargo.toml
94+
cargo test --manifest-path book/tests/Cargo.toml
9695

9796

9897

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Cucumber testing framework for Rust
33

44
[![Documentation](https://docs.rs/cucumber/badge.svg)](https://docs.rs/cucumber)
55
[![Actions Status](https://github.com/cucumber-rs/cucumber/workflows/CI/badge.svg)](https://github.com/cucumber-rs/cucumber/actions)
6+
[![Rust 1.54+](https://img.shields.io/badge/rustc-1.54+-lightgray.svg "Rust 1.54+")](https://blog.rust-lang.org/2021/07/29/Rust-1.54.0.html)
67
[![Unsafe Forbidden](https://img.shields.io/badge/unsafe-forbidden-success.svg)](https://github.com/rust-secure-code/safety-dance/)
78

89
An implementation of the [Cucumber] testing framework for Rust. Fully native, no external test runners or dependencies.

codegen/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ proc-macro = true
2222
[dependencies]
2323
inflections = "1.1"
2424
itertools = "0.10"
25-
proc-macro2 = "1.0"
26-
quote = "1.0"
25+
proc-macro2 = "1.0.28"
26+
quote = "1.0.9"
2727
regex = "1.4"
28-
syn = { version = "1.0", features = ["derive", "extra-traits", "full"] }
28+
syn = { version = "1.0.74", features = ["derive", "extra-traits", "full"] }
2929

3030
[dev-dependencies]
3131
async-trait = "0.1"
3232
cucumber = { path = "..", features = ["macros"] }
3333
futures = "0.3"
34-
tokio = { version = "1.0", features = ["macros", "rt-multi-thread", "time"] }
34+
tokio = { version = "1.12", features = ["macros", "rt-multi-thread", "time"] }
3535

3636
[[test]]
3737
name = "example"

codegen/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
[![Documentation](https://docs.rs/cucumber-codegen/badge.svg)](https://docs.rs/cucumber-codegen)
55
[![Actions Status](https://github.com/cucumber-rs/cucumber/workflows/CI/badge.svg)](https://github.com/cucumber-rs/cucumber/actions)
6+
[![Rust 1.54+](https://img.shields.io/badge/rustc-1.54+-lightgray.svg "Rust 1.54+")](https://blog.rust-lang.org/2021/07/29/Rust-1.54.0.html)
67
[![Unsafe Forbidden](https://img.shields.io/badge/unsafe-forbidden-success.svg)](https://github.com/rust-secure-code/safety-dance)
78

89
- [Changelog](https://github.com/cucumber-rs/cucumber/blob/main/codegen/CHANGELOG.md)

0 commit comments

Comments
 (0)