Skip to content

Commit 79c6948

Browse files
volks73Christopher Field
and
Christopher Field
authored
Change GitHub Actions (#36)
* Change actions * Fix action name --------- Co-authored-by: Christopher Field <[email protected]>
1 parent 125b8b3 commit 79c6948

File tree

1 file changed

+10
-33
lines changed

1 file changed

+10
-33
lines changed

.github/workflows/CI.yml

+10-33
Original file line numberDiff line numberDiff line change
@@ -15,62 +15,39 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout sources
18-
uses: actions/checkout@v2
18+
uses: actions/checkout@v4
1919

2020
- name: Install stable toolchain
21-
uses: actions-rs/toolchain@v1
22-
with:
23-
profile: minimal
24-
toolchain: stable
25-
override: true
21+
uses: dtolnay/rust-toolchain@stable
2622

2723
- name: Run cargo check
28-
uses: actions-rs/cargo@v1
29-
with:
30-
command: check
24+
run: cargo check
3125

3226
test:
3327
name: Tests
3428
runs-on: ubuntu-latest
3529
steps:
3630
- name: Checkout sources
37-
uses: actions/checkout@v2
31+
uses: actions/checkout@v4
3832

3933
- name: Install stable toolchain
40-
uses: actions-rs/toolchain@v1
41-
with:
42-
profile: minimal
43-
toolchain: stable
44-
override: true
34+
uses: dtolnay/rust-toolchain@stable
4535

4636
- name: Run cargo test
47-
uses: actions-rs/cargo@v1
48-
with:
49-
command: test
37+
run: cargo test
5038

5139
lints:
5240
name: Lints
5341
runs-on: ubuntu-latest
5442
steps:
5543
- name: Checkout sources
56-
uses: actions/checkout@v2
44+
uses: actions/checkout@v4
5745

5846
- name: Install stable toolchain
59-
uses: actions-rs/toolchain@v1
60-
with:
61-
profile: minimal
62-
toolchain: stable
63-
override: true
64-
components: rustfmt, clippy
47+
uses: dtolnay/rust-toolchain@stable
6548

6649
- name: Run cargo fmt
67-
uses: actions-rs/cargo@v1
68-
with:
69-
command: fmt
70-
args: --all -- --check
50+
run: cargo fmt --all -- --check
7151

7252
- name: Run cargo clippy
73-
uses: actions-rs/cargo@v1
74-
with:
75-
command: clippy
76-
args: -- -D warnings
53+
run: cargo clippy -- -D warnings

0 commit comments

Comments
 (0)