Skip to content

Commit 84d8810

Browse files
authored
Tweak CI scripts to fix warnings (#1178)
1 parent 23fb1dd commit 84d8810

File tree

2 files changed

+3
-20
lines changed

2 files changed

+3
-20
lines changed

.github/workflows/hakari.yml

+2-13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# This workflow file serves as an example for cargo-hakari CI integration.
2-
31
on:
42
push:
53
branches:
@@ -18,20 +16,11 @@ jobs:
1816
RUSTFLAGS: -D warnings
1917
steps:
2018
- uses: actions/checkout@v4
21-
- uses: actions-rs/toolchain@v1
22-
with:
23-
toolchain: stable
2419
- name: Install cargo-hakari
2520
uses: taiki-e/install-action@v2
2621
with:
2722
tool: cargo-hakari
2823
- name: Check workspace-hack Cargo.toml is up-to-date
29-
uses: actions-rs/cargo@v1
30-
with:
31-
command: hakari
32-
args: generate --diff
24+
run: cargo hakari generate --diff
3325
- name: Check all crates depend on workspace-hack
34-
uses: actions-rs/cargo@v1
35-
with:
36-
command: hakari
37-
args: manage-deps --dry-run
26+
run: cargo hakari manage-deps --dry-run

.github/workflows/rust.yml

+1-7
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,21 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
25-
- uses: dtolnay/rust-toolchain@1.66
2625
- name: Test build documentation
2726
run: cargo doc
2827
build-and-test:
2928
runs-on: ubuntu-latest
3029
steps:
3130
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
32-
- uses: dtolnay/rust-toolchain@1.66
3331
- name: Build
3432
run: cargo build --verbose
3533
- name: Install latest nextest release
3634
uses: taiki-e/install-action@nextest
3735
- name: Test nextest all
38-
uses: actions-rs/cargo@v1
39-
with:
40-
command: nextest
41-
args: run --verbose
36+
run: cargo nextest run --verbose
4237
clippy:
4338
runs-on: ubuntu-latest
4439
steps:
4540
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
46-
- uses: dtolnay/rust-toolchain@1.66
4741
- name: Test Libraries
4842
run: cargo clippy --all-targets

0 commit comments

Comments
 (0)