File tree Expand file tree Collapse file tree 1 file changed +11
-26
lines changed
Expand file tree Collapse file tree 1 file changed +11
-26
lines changed Original file line number Diff line number Diff line change 1- name : Check formatting & Clippy
1+ name : Check formatting
22on :
33 push :
4+ branches :
5+ - master
46 pull_request :
57
6- permissions :
7- contents : read
8-
9- concurrency :
10- group : deploy
11- cancel-in-progress : false
12-
138jobs :
149 fmt :
1510 name : Check code formatting
1611 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
2912 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
13+ - uses : actions/checkout@v4
14+
15+ - uses : actions-rust-lang/setup-rust-toolchain@v1
16+ with :
17+ components : rustfmt
18+
19+ - name : Rustfmt Check
20+ uses : actions-rust-lang/rustfmt@v1
You can’t perform that action at this time.
0 commit comments