Skip to content

Commit 7755080

Browse files
committed
chore(ci): remove deprecated actions-rs actions
1 parent fced807 commit 7755080

File tree

1 file changed

+6
-22
lines changed

1 file changed

+6
-22
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
## Based on https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md
21
name: Test
32

43
on:
@@ -30,15 +29,11 @@ jobs:
3029
uses: actions/checkout@v4
3130

3231
- name: Install stable toolchain
33-
uses: actions-rs/toolchain@v1
32+
uses: actions-rust-lang/setup-rust-toolchain@v1
3433
with:
35-
profile: minimal
3634
toolchain: 1.80.0
37-
override: true
3835
components: clippy, rustfmt
3936

40-
- uses: Swatinem/rust-cache@v2
41-
4237
- name: Install sqlx-cli
4338
run: cargo install sqlx-cli@0.7.4 --no-default-features --features native-tls,postgres
4439

@@ -49,28 +44,17 @@ jobs:
4944
run: cargo sqlx prepare --check -- --tests
5045

5146
- name: Build
52-
uses: actions-rs/cargo@v1
53-
with:
54-
command: build
55-
args: --all --all-targets
47+
run: cargo build --workspace --all-targets
5648

5749
- name: Test
58-
uses: actions-rs/cargo@v1
59-
with:
60-
command: test
61-
args: --all
50+
run: cargo test --workspace
6251

6352
- name: Lint code
64-
uses: actions-rs/cargo@v1
65-
with:
66-
command: clippy
67-
args: --all
53+
run: cargo clippy --workspace
6854

6955
- name: Check formatting
70-
uses: actions-rs/cargo@v1
71-
with:
72-
command: fmt
73-
args: --all -- --check
56+
run: cargo fmt --all --check
57+
7458
docker:
7559
name: Test Docker
7660
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)