Skip to content

Commit 9009bfc

Browse files
authored
Merge pull request #60 from cakebaker/ci_replace_actions_rs_cargo
ci: remove actions-rs/cargo & use cargo directly
2 parents 325ae3a + c39e017 commit 9009bfc

File tree

1 file changed

+5
-18
lines changed

1 file changed

+5
-18
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v4
1717
- uses: dtolnay/rust-toolchain@stable
18-
- uses: actions-rs/cargo@v1
19-
with:
20-
command: check
18+
- run: cargo check
2119

2220
test:
2321
name: cargo test
@@ -28,9 +26,7 @@ jobs:
2826
steps:
2927
- uses: actions/checkout@v4
3028
- uses: dtolnay/rust-toolchain@stable
31-
- uses: actions-rs/cargo@v1
32-
with:
33-
command: test
29+
- run: cargo test
3430

3531
fmt:
3632
name: cargo fmt --all -- --check
@@ -39,10 +35,7 @@ jobs:
3935
- uses: actions/checkout@v4
4036
- uses: dtolnay/rust-toolchain@stable
4137
- run: rustup component add rustfmt
42-
- uses: actions-rs/cargo@v1
43-
with:
44-
command: fmt
45-
args: --all -- --check
38+
- run: cargo fmt --all -- --check
4639

4740
clippy:
4841
name: cargo clippy -- -D warnings
@@ -54,10 +47,7 @@ jobs:
5447
- uses: actions/checkout@v4
5548
- uses: dtolnay/rust-toolchain@stable
5649
- run: rustup component add clippy
57-
- uses: actions-rs/cargo@v1
58-
with:
59-
command: clippy
60-
args: -- -D warnings
50+
- run: cargo clippy -- -D warnings
6151

6252
coverage:
6353
name: Code Coverage
@@ -94,10 +84,7 @@ jobs:
9484
- name: rust toolchain ~ install
9585
uses: dtolnay/rust-toolchain@nightly
9686
- name: Test
97-
uses: actions-rs/cargo@v1
98-
with:
99-
command: test
100-
args: ${{ steps.vars.outputs.CARGO_FEATURES_OPTION }} --no-fail-fast
87+
run: cargo test ${{ steps.vars.outputs.CARGO_FEATURES_OPTION }} --no-fail-fast
10188
env:
10289
CARGO_INCREMENTAL: "0"
10390
RUSTC_WRAPPER: ""

0 commit comments

Comments
 (0)