Skip to content

Commit e5de3cd

Browse files
committed
ci: remove actions-rs/cargo & use cargo directly
1 parent 0e14b37 commit e5de3cd

1 file changed

Lines changed: 5 additions & 18 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ jobs:
1919
profile: minimal
2020
toolchain: stable
2121
override: true
22-
- uses: actions-rs/cargo@v1
23-
with:
24-
command: check
22+
- run: cargo check
2523

2624
test:
2725
name: cargo test
@@ -36,9 +34,7 @@ jobs:
3634
profile: minimal
3735
toolchain: stable
3836
override: true
39-
- uses: actions-rs/cargo@v1
40-
with:
41-
command: test
37+
- run: cargo test
4238

4339
fmt:
4440
name: cargo fmt --all -- --check
@@ -51,10 +47,7 @@ jobs:
5147
toolchain: stable
5248
override: true
5349
- run: rustup component add rustfmt
54-
- uses: actions-rs/cargo@v1
55-
with:
56-
command: fmt
57-
args: --all -- --check
50+
- run: cargo fmt --all -- --check
5851

5952
clippy:
6053
name: cargo clippy -- -D warnings
@@ -70,10 +63,7 @@ jobs:
7063
toolchain: stable
7164
override: true
7265
- run: rustup component add clippy
73-
- uses: actions-rs/cargo@v1
74-
with:
75-
command: clippy
76-
args: -- -D warnings
66+
- run: cargo clippy -- -D warnings
7767

7868
coverage:
7969
name: Code Coverage
@@ -114,10 +104,7 @@ jobs:
114104
default: true
115105
profile: minimal # minimal component installation (ie, no documentation)
116106
- name: Test
117-
uses: actions-rs/cargo@v1
118-
with:
119-
command: test
120-
args: ${{ steps.vars.outputs.CARGO_FEATURES_OPTION }} --no-fail-fast
107+
run: cargo test ${{ steps.vars.outputs.CARGO_FEATURES_OPTION }} --no-fail-fast
121108
env:
122109
CARGO_INCREMENTAL: "0"
123110
RUSTC_WRAPPER: ""

0 commit comments

Comments
 (0)