File tree Expand file tree Collapse file tree 2 files changed +33
-3
lines changed Expand file tree Collapse file tree 2 files changed +33
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : Push
2
+
3
+ on :
4
+ push :
5
+ branches : [ main ]
6
+
7
+ env :
8
+ CARGO_TERM_COLOR : always
9
+
10
+ jobs :
11
+ build :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - uses : actions/checkout@v4
15
+ - uses : dtolnay/rust-toolchain@stable
16
+ - name : Build
17
+ run : cargo build --verbose
18
+ - name : Run tests
19
+ run : cargo test --verbose
20
+ fmt :
21
+ runs-on : ubuntu-latest
22
+ steps :
23
+ - uses : actions/checkout@v4
24
+ - uses : dtolnay/rust-toolchain@nightly
25
+ with :
26
+ components : clippy, rustfmt
27
+ - name : clippy
28
+ uses : clechasseur/rs-clippy-check@v3
29
+ - name : rustfmt
30
+ uses : mbrobbel/rustfmt-check@0.8.1
31
+ with :
32
+ token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1
- name : Build
1
+ name : Review
2
2
3
3
on :
4
- push :
5
- branches : [ main ]
6
4
pull_request :
7
5
branches : [ main ]
8
6
You can’t perform that action at this time.
0 commit comments