Commit c532de8 1 parent 6232378 commit c532de8 Copy full SHA for c532de8
File tree 1 file changed +12
-6
lines changed
1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 22
22
- uses : dtolnay/rust-toolchain@master
23
23
with :
24
24
toolchain : ${{ matrix.rust }}
25
+ - run : RUSTFLAGS="-D warnings" cargo check --locked
26
+
27
+ check-notlocked :
28
+ name : Check (not locked)
29
+ runs-on : ubuntu-latest
30
+ steps :
31
+ - uses : actions/checkout@v4
32
+ - uses : dtolnay/rust-toolchain@stable
25
33
- name : Cargo update
26
34
run : cargo update
27
35
- run : RUSTFLAGS="-D warnings" cargo check
40
48
- uses : dtolnay/rust-toolchain@master
41
49
with :
42
50
toolchain : ${{ matrix.rust }}
43
- - name : Cargo update
44
- run : cargo update
45
- - run : RUSTFLAGS="-D warnings" cargo check --all-targets --all-features
51
+ - run : RUSTFLAGS="-D warnings" cargo check --locked --all-targets --all-features
46
52
47
53
test :
48
54
name : Test Suite
51
57
steps :
52
58
- uses : actions/checkout@v4
53
59
- uses : dtolnay/rust-toolchain@stable
54
- - run : cargo test --all-features
60
+ - run : cargo test --locked -- all-features
55
61
56
62
test_features :
57
63
name : Test suite (with features)
69
75
- uses : actions/checkout@v4
70
76
- name : Install stable toolchain
71
77
uses : dtolnay/rust-toolchain@stable
72
- - run : cargo test ${{ matrix.features }}
78
+ - run : cargo test --locked ${{ matrix.features }}
73
79
74
80
fmt :
75
81
name : Rustfmt
90
96
- uses : dtolnay/rust-toolchain@nightly
91
97
with :
92
98
components : clippy
93
- - run : cargo clippy --all-features -- -D warnings
99
+ - run : cargo clippy --locked -- all-features -- -D warnings
94
100
95
101
doc :
96
102
name : Build documentation
You can’t perform that action at this time.
0 commit comments