File tree Expand file tree Collapse file tree 1 file changed +6
-22
lines changed Expand file tree Collapse file tree 1 file changed +6
-22
lines changed Original file line number Diff line number Diff line change 1
- # # Based on https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md
2
1
name : Test
3
2
4
3
on :
@@ -30,15 +29,11 @@ jobs:
30
29
uses : actions/checkout@v4
31
30
32
31
- name : Install stable toolchain
33
- uses : actions-rs/ toolchain@v1
32
+ uses : actions-rust-lang/setup-rust- toolchain@v1
34
33
with :
35
- profile : minimal
36
34
toolchain : 1.80.0
37
- override : true
38
35
components : clippy, rustfmt
39
36
40
- - uses : Swatinem/rust-cache@v2
41
-
42
37
- name : Install sqlx-cli
43
38
run : cargo install sqlx-cli@0.7.4 --no-default-features --features native-tls,postgres
44
39
@@ -49,28 +44,17 @@ jobs:
49
44
run : cargo sqlx prepare --check -- --tests
50
45
51
46
- 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
56
48
57
49
- name : Test
58
- uses : actions-rs/cargo@v1
59
- with :
60
- command : test
61
- args : --all
50
+ run : cargo test --workspace
62
51
63
52
- name : Lint code
64
- uses : actions-rs/cargo@v1
65
- with :
66
- command : clippy
67
- args : --all
53
+ run : cargo clippy --workspace
68
54
69
55
- 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
+
74
58
docker :
75
59
name : Test Docker
76
60
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments