File tree Expand file tree Collapse file tree 2 files changed +36
-2
lines changed
Expand file tree Collapse file tree 2 files changed +36
-2
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,12 @@ name: "[impit-cli] Test & Build"
44on :
55 push :
66 branches :
7- - " ** "
7+ - " master "
88 tags-ignore :
99 - " impit-cli-*"
1010 paths :
1111 - " impit-cli/**"
1212 - " impit/**"
13- pull_request :
1413
1514env :
1615 CRATE_NAME : impit-cli
Original file line number Diff line number Diff line change 1+ name : Check formatting & Clippy
2+ on :
3+ push :
4+ pull_request :
5+
6+ permissions :
7+ contents : read
8+
9+ concurrency :
10+ group : deploy
11+ cancel-in-progress : false
12+
13+ jobs :
14+ fmt :
15+ name : Check code formatting
16+ runs-on : ubuntu-latest
17+ container : rust:slim
18+ steps :
19+ - name : Checkout
20+ uses : actions/checkout@v2
21+ - name : Install rustfmt
22+ run : rustup component add rustfmt
23+ - name : Check formatting
24+ run : cargo fmt -- --check
25+ clippy :
26+ name : Check code style
27+ runs-on : ubuntu-latest
28+ container : rust:slim
29+ steps :
30+ - name : Checkout
31+ uses : actions/checkout@v2
32+ - name : Install clippy
33+ run : rustup component add clippy
34+ - name : Check style
35+ run : cargo clippy -- -D warnings
You can’t perform that action at this time.
0 commit comments