Skip to content

Commit 8bdc78c

Browse files
committed
Update tests workflow
1 parent 44ae6e6 commit 8bdc78c

1 file changed

Lines changed: 7 additions & 23 deletions

File tree

.github/workflows/tests.yml

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -14,44 +14,28 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout sources
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v6
1818

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

2622
- name: Run cargo test
27-
uses: actions-rs/cargo@v1
28-
with:
29-
command: test
30-
args: --all
23+
run: cargo test --all
3124

3225
lints:
3326
name: Lints
3427
runs-on: ubuntu-latest
3528
steps:
3629
- name: Checkout sources
37-
uses: actions/checkout@v2
30+
uses: actions/checkout@v6
3831

3932
- name: Install stable toolchain
40-
uses: actions-rs/toolchain@v1
33+
uses: dtolnay/rust-toolchain@stable
4134
with:
42-
profile: minimal
43-
toolchain: stable
44-
override: true
4535
components: rustfmt, clippy
4636

4737
- name: Run cargo fmt
48-
uses: actions-rs/cargo@v1
49-
with:
50-
command: fmt
51-
args: --all -- --check
38+
run: cargo fmt --all -- --check
5239

5340
- name: Run cargo clippy
54-
uses: actions-rs/cargo@v1
55-
with:
56-
command: clippy
57-
args: --all --all-targets -- --deny warnings
41+
run: cargo clippy --all --all-targets -- --deny warnings

0 commit comments

Comments
 (0)