Skip to content

Commit a79bf22

Browse files
feat(ci): modernize configuration
1 parent e057c8f commit a79bf22

File tree

1 file changed

+11
-23
lines changed

1 file changed

+11
-23
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -15,40 +15,28 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v4
1919

20-
- uses: actions-rs/toolchain@v1
20+
- uses: dtolnay/rust-toolchain@stable
2121
with:
22-
profile: minimal
23-
toolchain: stable
24-
override: true
22+
components: rustfmt
2523

26-
- run: rustup component add rustfmt
27-
28-
- uses: actions-rs/cargo@v1
29-
with:
30-
command: fmt
31-
args: --all -- --check
24+
- name: Rust rustfmt
25+
run: cargo fmt --all -- --check
3226

3327
clippy:
3428
name: clippy / nightly
3529
runs-on: ubuntu-latest
3630

3731
steps:
38-
- uses: actions/checkout@v2
32+
- uses: actions/checkout@v4
3933

40-
- uses: actions-rs/toolchain@v1
34+
- uses: dtolnay/rust-toolchain@stable
4135
with:
42-
profile: minimal
43-
toolchain: nightly
44-
override: true
36+
components: clippy
4537

46-
- run: rustup component add clippy
47-
48-
- uses: actions-rs/cargo@v1
49-
with:
50-
command: clippy
51-
args: -- -D warnings
38+
- name: Run clippy
39+
run: cargo clippy -- -D warnings
5240

5341
test:
5442
name: test / ${{ matrix.name }}
@@ -67,7 +55,7 @@ jobs:
6755
rust: 1.70
6856

6957
steps:
70-
- uses: actions/checkout@v2
58+
- uses: actions/checkout@v4
7159

7260
- run: sudo $HOME/.cargo/bin/rustup default ${{ matrix.rust }}
7361

0 commit comments

Comments
 (0)