File tree Expand file tree Collapse file tree 1 file changed +91
-0
lines changed Expand file tree Collapse file tree 1 file changed +91
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : " Test Rust"
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ pull_request :
7
+ branches :
8
+ - main
9
+ workflow_dispatch :
10
+
11
+ defaults :
12
+ run :
13
+ shell : bash -l {0}
14
+
15
+ jobs :
16
+ test :
17
+ runs-on : ubuntu-latest
18
+
19
+ services :
20
+ dynamo :
21
+ image : amazon/dynamodb-local
22
+ ports : 8000:8000
23
+
24
+ steps :
25
+ - uses : actions/checkout@v2
26
+
27
+ - uses : actions/cache@v3
28
+ with :
29
+ path : |
30
+ ~/.cargo/bin/
31
+ ~/.cargo/registry/index/
32
+ ~/.cargo/registry/cache/
33
+ ~/.cargo/git/db/
34
+ target/
35
+ key : rust-cargo-${{ hashFiles('**/Cargo.lock') }}-test
36
+ restore-keys : |
37
+ rust-cargo-${{ hashFiles('**/Cargo.lock') }}-test
38
+ rust-cargo-${{ hashFiles('**/Cargo.lock') }}-
39
+ rust-cargo-
40
+
41
+ - uses : actions-rs/cargo@v1
42
+ with :
43
+ command : test
44
+
45
+ format :
46
+ runs-on : ubuntu-latest
47
+ steps :
48
+ - uses : actions/checkout@v2
49
+
50
+ - uses : actions/cache@v3
51
+ with :
52
+ path : |
53
+ ~/.cargo/bin/
54
+ ~/.cargo/registry/index/
55
+ ~/.cargo/registry/cache/
56
+ ~/.cargo/git/db/
57
+ target/
58
+ key : rust-cargo-${{ hashFiles('**/Cargo.lock') }}-format
59
+ restore-keys : |
60
+ rust-cargo-${{ hashFiles('**/Cargo.lock') }}-format
61
+ rust-cargo-${{ hashFiles('**/Cargo.lock') }}-
62
+ rust-cargo-
63
+
64
+ - uses : actions-rs/cargo@v1
65
+ with :
66
+ command : fmt
67
+ args : --all -- --check
68
+
69
+ clippy :
70
+ runs-on : ubuntu-latest
71
+ steps :
72
+ - uses : actions/checkout@v2
73
+
74
+ - uses : actions/cache@v3
75
+ with :
76
+ path : |
77
+ ~/.cargo/bin/
78
+ ~/.cargo/registry/index/
79
+ ~/.cargo/registry/cache/
80
+ ~/.cargo/git/db/
81
+ target/
82
+ key : rust-cargo-${{ hashFiles('**/Cargo.lock') }}-format
83
+ restore-keys : |
84
+ rust-cargo-${{ hashFiles('**/Cargo.lock') }}-format
85
+ rust-cargo-${{ hashFiles('**/Cargo.lock') }}-
86
+ rust-cargo-
87
+
88
+ - uses : actions-rs/cargo@v1
89
+ with :
90
+ command : clippy
91
+ args : --all --no-deps --all-features --tests
You can’t perform that action at this time.
0 commit comments