Skip to content

Commit 216d4bc

Browse files
authored
Fix CI lint by adding rustfmt in the the toolchain components (#1861)
1 parent d6c2bbe commit 216d4bc

File tree

1 file changed

+7
-27
lines changed

1 file changed

+7
-27
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,9 @@ jobs:
3939
components: clippy, rustfmt
4040
- uses: Swatinem/rust-cache@v2
4141
- name: Run cargo fmt (check if all code is rustfmt-ed)
42-
uses: actions-rs/cargo@v1
43-
with:
44-
command: fmt
45-
args: --all -- --check
42+
run: cargo fmt --all --check
4643
- name: Run cargo clippy (deny warnings)
47-
uses: actions-rs/cargo@v1
48-
with:
49-
command: clippy
50-
args: --all-targets --all-features -- -D warnings
44+
run: cargo clippy --all-targets --all-features -- -D warnings
5145
- uses: cargo-bins/cargo-binstall@main
5246
- name: Install cargo-msrv
5347
run: cargo binstall --no-confirm --force cargo-msrv
@@ -61,16 +55,11 @@ jobs:
6155
steps:
6256
- uses: actions/checkout@v5
6357
- name: cargo fetch
64-
uses: actions-rs/cargo@v1
65-
with:
66-
command: fetch
58+
run: cargo fetch
6759
- name: cargo publish lychee-lib
68-
uses: actions-rs/cargo@v1
6960
env:
7061
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
71-
with:
72-
command: publish
73-
args: --dry-run --manifest-path lychee-lib/Cargo.toml
62+
run: cargo publish --dry-run --manifest-path lychee-lib/Cargo.toml
7463

7564
# Can't check lychee binary as it depends on the lib above
7665
# and `--dry-run` doesn't allow unpublished crates yet.
@@ -98,17 +87,8 @@ jobs:
9887
- name: Check that rustls-tls feature doesn't depend on OpenSSL
9988
run: test -z "$( cargo tree --package lychee --no-default-features --features rustls-tls --prefix none | sed -n '/^openssl-sys /p' )"
10089
- name: Run cargo check with default features
101-
uses: actions-rs/cargo@v1
102-
with:
103-
command: check
104-
args: --workspace --all-targets
90+
run: cargo check --workspace --all-targets
10591
- name: Run cargo check with all features
106-
uses: actions-rs/cargo@v1
107-
with:
108-
command: check
109-
args: --workspace --all-targets --all-features
92+
run: cargo check --workspace --all-targets --all-features
11093
- name: Run cargo check with rustls-tls feature
111-
uses: actions-rs/cargo@v1
112-
with:
113-
command: check
114-
args: --workspace --all-targets --no-default-features --features rustls-tls
94+
run: cargo check --workspace --all-targets --no-default-features --features rustls-tls

0 commit comments

Comments
 (0)