File tree 2 files changed +34
-25
lines changed
2 files changed +34
-25
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Build & Tests
2
2
3
3
on :
4
4
push :
5
- pull_request :
5
+ branches : [ main ]
6
6
7
7
env :
8
8
CARGO_TERM_COLOR : always
41
41
run : cargo --verbose t
42
42
env :
43
43
RESEND_API_KEY : ${{ secrets.RESEND_API_KEY }}
44
-
45
- lint :
46
- name : Lint
47
- runs-on : ubuntu-22.04
48
-
49
- steps :
50
- - name : Checkout
51
- uses : actions/checkout@v3
52
-
53
- - name : Use cached dependencies
54
- uses : Swatinem/rust-cache@v2
55
- with :
56
- key : " ubuntu-22.04-x86_64-unknown-linux-gnu"
57
-
58
- - name : Install clippy and rustfmt
59
- run : |
60
- rustup component add clippy
61
- rustup component add rustfmt
62
-
63
- - name : Run clippy
64
- run : cargo clippy --all-features -- -Dwarnings
65
-
66
- - name : Run fmt
67
- run : cargo fmt --check
Original file line number Diff line number Diff line change
1
+ name : Lint
2
+
3
+ on :
4
+ push :
5
+ pull_request :
6
+
7
+ env :
8
+ CARGO_TERM_COLOR : always
9
+
10
+ jobs :
11
+ lint :
12
+ name : Lint
13
+ runs-on : ubuntu-22.04
14
+
15
+ steps :
16
+ - name : Checkout
17
+ uses : actions/checkout@v3
18
+
19
+ - name : Use cached dependencies
20
+ uses : Swatinem/rust-cache@v2
21
+ with :
22
+ key : " ubuntu-22.04-x86_64-unknown-linux-gnu"
23
+
24
+ - name : Install clippy and rustfmt
25
+ run : |
26
+ rustup component add clippy
27
+ rustup component add rustfmt
28
+
29
+ - name : Run clippy
30
+ run : cargo clippy --all-features -- -Dwarnings
31
+
32
+ - name : Run fmt
33
+ run : cargo fmt --check
You can’t perform that action at this time.
0 commit comments