@@ -20,11 +20,11 @@ jobs:
20
20
tests :
21
21
strategy :
22
22
matrix :
23
- rust_version : [1.66 .0, stable]
23
+ rust_version : [1.67 .0, stable]
24
24
runs-on : ubuntu-20.04
25
25
26
26
steps :
27
- - uses : actions/checkout@v2
27
+ - uses : actions/checkout@v4
28
28
with :
29
29
fetch-depth : 0
30
30
- name : Install Rust toolchain
@@ -36,21 +36,14 @@ jobs:
36
36
run : rustup default ${{ matrix.rust_version }}
37
37
- name : print rustc version
38
38
run : rustc --version
39
- # remove this step when MSRV >= 1.67.0
40
- - name : downgrade `toml_edit`, time`, `toml_datetime` crate to support older Rust toolchain
41
- if : matrix.rust_version == '1.66.0'
42
- run : |
43
- cargo update -p toml_edit --precise 0.20.2
44
- cargo update -p toml_datetime --precise 0.6.3
45
- cargo update -p time --precise 0.3.23
46
39
- name : Run tests
47
40
run : ./.github/test.sh
48
41
49
42
# remove this job when https://github.com/rust-lang/rust/issues/89554 stabilizes
50
43
test_exhaustive_checks :
51
44
runs-on : ubuntu-20.04
52
45
steps :
53
- - uses : actions/checkout@v3
46
+ - uses : actions/checkout@v4
54
47
- name : Install nightly for exhaustive check tests
55
48
uses : dtolnay/rust-toolchain@nightly
56
49
# a failure on this check means, that some of `syn` crate's enums have been extended
@@ -64,15 +57,15 @@ jobs:
64
57
runs-on : ubuntu-20.04
65
58
66
59
steps :
67
- - uses : actions/checkout@v2
60
+ - uses : actions/checkout@v4
68
61
- name : Run clippy
69
62
run : cargo clippy --features unstable__schema --benches -- -D clippy::all
70
63
71
64
cargo-fmt :
72
65
runs-on : ubuntu-20.04
73
66
74
67
steps :
75
- - uses : actions/checkout@v2
68
+ - uses : actions/checkout@v4
76
69
- name : Run cargo fmt
77
70
run : cargo fmt --check
78
71
83
76
runs-on : ubuntu-20.04
84
77
85
78
steps :
86
- - uses : actions/checkout@v2
79
+ - uses : actions/checkout@v4
87
80
- name : run cargo doc
88
81
run : RUSTDOCFLAGS="-D warnings" cargo doc --features derive,unstable__schema
89
82
93
86
if : github.ref == 'refs/heads/master'
94
87
steps :
95
88
- name : Checkout repository
96
- uses : actions/checkout@v3
89
+ uses : actions/checkout@v4
97
90
with :
98
91
fetch-depth : 0
99
92
token : ${{ secrets.CUSTOM_GITHUB_TOKEN }}
0 commit comments