Skip to content

Commit 7212313

Browse files
committed
Use simple run: cargo steps instead of the deprecated actions-rs/cargo
1 parent 4e5b629 commit 7212313

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

.github/workflows/rust.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,13 @@ jobs:
2222
components: rustfmt, clippy
2323

2424
- name: Check formatting
25-
uses: actions-rs/cargo@v1
26-
with:
27-
command: fmt
28-
args: --check
25+
run: cargo fmt --check
2926

3027
- name: Check clippy
31-
uses: actions-rs/cargo@v1
32-
with:
33-
command: clippy
34-
args: --tests -- -D warnings
28+
run: cargo clippy --tests -- -D warnings
3529

3630
- name: Check build
37-
uses: actions-rs/cargo@v1
38-
with:
39-
command: check
31+
run: cargo check
4032

4133
- name: Run tests
42-
uses: actions-rs/cargo@v1
43-
with:
44-
command: test
34+
run: cargo test

0 commit comments

Comments
 (0)