@@ -45,17 +45,17 @@ jobs:
45
45
run : sudo apt-get update && sudo apt-get install -y valgrind
46
46
47
47
- name : cargo test (debug; default features)
48
- run : cargo test
48
+ run : cargo test --locked
49
49
env :
50
50
RUST_BACKTRACE : 1
51
51
52
52
- name : cargo test (debug; all features)
53
- run : cargo test --all-features
53
+ run : cargo test --locked -- all-features
54
54
env :
55
55
RUST_BACKTRACE : 1
56
56
57
57
- name : cargo test (debug; no default features; no run)
58
- run : cargo test --no-default-features
58
+ run : cargo test --locked -- no-default-features
59
59
env :
60
60
RUST_BACKTRACE : 1
61
61
@@ -75,17 +75,17 @@ jobs:
75
75
run : rustup target add wasm32-unknown-unknown
76
76
77
77
- name : wasm32 build (debug; default features)
78
- run : cargo build --target wasm32-unknown-unknown --lib
78
+ run : cargo build --locked -- target wasm32-unknown-unknown --lib
79
79
env :
80
80
RUST_BACKTRACE : 1
81
81
82
82
- name : wasm32 build (debug; all features)
83
- run : cargo build --target wasm32-unknown-unknown --lib --all-features
83
+ run : cargo build --locked -- target wasm32-unknown-unknown --lib --all-features
84
84
env :
85
85
RUST_BACKTRACE : 1
86
86
87
87
- name : wasm32 build (debug; no default features)
88
- run : cargo build --target wasm32-unknown-unknown --lib --no-default-features
88
+ run : cargo build --locked -- target wasm32-unknown-unknown --lib --no-default-features
89
89
env :
90
90
RUST_BACKTRACE : 1
91
91
@@ -106,7 +106,7 @@ jobs:
106
106
with :
107
107
toolchain : " 1.60"
108
108
109
- - run : cargo check --lib --all-features
109
+ - run : cargo check --lib --locked -- all-features
110
110
111
111
format :
112
112
name : Format
@@ -135,7 +135,7 @@ jobs:
135
135
uses : dtolnay/rust-toolchain@stable
136
136
with :
137
137
components : clippy
138
- - run : cargo clippy --all-features -- --deny warnings
138
+ - run : cargo clippy --locked -- all-features -- --deny warnings
139
139
140
140
semver :
141
141
name : Check semver compatibility
@@ -189,7 +189,7 @@ jobs:
189
189
190
190
- name : Build and run test
191
191
run : |
192
- cargo test --all-features --lib
192
+ cargo test --locked -- all-features --lib
193
193
exe=$(cargo test --all-features --no-run --message-format json | \
194
194
jq --slurp --raw-output '.[] | select(.reason == "compiler-artifact") | select(.target.name == "rustls_pki_types") | select(.profile.test) | .executable')
195
195
valgrind --error-exitcode=99 --exit-on-first-error=yes $exe
0 commit comments