Skip to content

Commit 0b8976e

Browse files
ci: check in Cargo.lock and build with --locked (#306)
* ci: check in Cargo.lock and build with --locked Signed-off-by: krisztianfekete <git@krisztianfekete.org> * deps: update time to 0.3.49 in Cargo.lock Signed-off-by: krisztianfekete <git@krisztianfekete.org> --------- Signed-off-by: krisztianfekete <git@krisztianfekete.org>
1 parent d6f2c2e commit 0b8976e

3 files changed

Lines changed: 4434 additions & 6 deletions

File tree

.github/workflows/rust.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,12 @@ jobs:
3939
- uses: actions-rs/cargo@v1
4040
with:
4141
command: check
42+
args: --locked
4243

4344
- uses: actions-rs/cargo@v1
4445
with:
4546
command: test
46-
args: --benches --all-features
47+
args: --locked --benches --all-features
4748

4849
test:
4950
name: Test Suite
@@ -81,7 +82,7 @@ jobs:
8182
- uses: actions-rs/cargo@v1
8283
with:
8384
command: test
84-
args: --all --all-features
85+
args: --locked --all --all-features
8586

8687
fmt:
8788
name: Rustfmt
@@ -134,7 +135,7 @@ jobs:
134135
- uses: actions-rs/cargo@v1
135136
with:
136137
command: clippy
137-
args: --workspace --all-targets -- -D warnings
138+
args: --locked --workspace --all-targets -- -D warnings
138139

139140
check-rustdoc-links:
140141
name: Check rustdoc intra-doc links
@@ -155,7 +156,7 @@ jobs:
155156
RUSTDOCFLAGS: "--deny broken_intra_doc_links"
156157
with:
157158
command: doc
158-
args: --verbose --workspace --no-deps --document-private-items --all-features
159+
args: --locked --verbose --workspace --no-deps --document-private-items --all-features
159160

160161
cross-compile:
161162
name: Cross compile
@@ -175,4 +176,4 @@ jobs:
175176
target: ${{ matrix.target }}
176177

177178
# Note that this does not test the `protobuf` feature (for now). See reasoning in https://github.com/prometheus/client_rust/pull/98/.
178-
- run: cargo check --target=${{ matrix.target }}
179+
- run: cargo check --locked --target=${{ matrix.target }}

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
/target
2-
Cargo.lock

0 commit comments

Comments
 (0)