Skip to content

Commit cd1a277

Browse files
striezelhawkw
authored andcommitted
chore: replace unmaintained actions-rs/* actions in CI workflows (#436)
1 parent 4a88b28 commit cd1a277

File tree

1 file changed

+9
-32
lines changed

1 file changed

+9
-32
lines changed

Diff for: .github/workflows/ci.yaml

+9-32
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,12 @@ jobs:
3535
uses: actions/checkout@v3
3636

3737
- name: Install stable toolchain
38-
uses: actions-rs/toolchain@v1
38+
uses: dtolnay/rust-toolchain@master
3939
with:
40-
profile: minimal
4140
toolchain: stable
42-
override: true
4341
- uses: Swatinem/rust-cache@v1
4442
- name: Run cargo check
45-
uses: actions-rs/cargo@v1
46-
with:
47-
command: check
43+
run: cargo check
4844

4945
test_os:
5046
name: Tests on ${{ matrix.os }} with Rust ${{ matrix.rust }}
@@ -67,11 +63,9 @@ jobs:
6763
uses: actions/checkout@v3
6864

6965
- name: Install ${{ matrix.rust }} toolchain
70-
uses: actions-rs/toolchain@v1
66+
uses: dtolnay/rust-toolchain@master
7167
with:
72-
profile: minimal
7368
toolchain: ${{ matrix.rust }}
74-
override: true
7569
- uses: Swatinem/rust-cache@v1
7670

7771
- name: Install Protoc
@@ -80,22 +74,13 @@ jobs:
8074
repo-token: ${{ secrets.GITHUB_TOKEN }}
8175

8276
- name: Run cargo test (API)
83-
uses: actions-rs/cargo@v1
84-
with:
85-
command: test
86-
args: -p console-api
77+
run: cargo test -p console-api
8778

8879
- name: Run cargo test (subscriber)
89-
uses: actions-rs/cargo@v1
90-
with:
91-
command: test
92-
args: -p console-subscriber
80+
run: cargo test -p console-subscriber
9381

9482
- name: Run cargo test (console)
95-
uses: actions-rs/cargo@v1
96-
with:
97-
command: test
98-
args: -p tokio-console --locked
83+
run: cargo test -p tokio-console --locked
9984

10085
lints:
10186
name: Lints
@@ -105,22 +90,14 @@ jobs:
10590
uses: actions/checkout@v3
10691

10792
- name: Install stable toolchain
108-
uses: actions-rs/toolchain@v1
93+
uses: dtolnay/rust-toolchain@master
10994
with:
110-
profile: minimal
11195
toolchain: stable
112-
override: true
11396
components: rustfmt, clippy
11497
- uses: Swatinem/rust-cache@v1
11598

11699
- name: Run cargo fmt
117-
uses: actions-rs/cargo@v1
118-
with:
119-
command: fmt
120-
args: --all -- --check
100+
run: cargo fmt --all -- --check
121101

122102
- name: Run cargo clippy
123-
uses: actions-rs/cargo@v1
124-
with:
125-
command: clippy
126-
args: -- -D warnings
103+
run: cargo clippy -- -D warnings

0 commit comments

Comments
 (0)