File tree 3 files changed +49
-71
lines changed
3 files changed +49
-71
lines changed Original file line number Diff line number Diff line change
1
+ on : [push, pull_request]
2
+
3
+ jobs :
4
+ test :
5
+ name : clippy + tests
6
+ runs-on : ubuntu-latest
7
+ steps :
8
+ - uses : actions/checkout@v2
9
+ - uses : actions-rs/toolchain@v1
10
+ with :
11
+ profile : minimal
12
+ toolchain : stable
13
+ - name : cargo clippy
14
+ uses : actions-rs/cargo@v1
15
+ with :
16
+ command : clippy
17
+ args : --workspace --tests --examples --features=std -- -D warnings
18
+ # don't forget the no_std example!
19
+ - name : cargo clippy (example_no_std)
20
+ uses : actions-rs/cargo@v1
21
+ with :
22
+ command : clippy
23
+ args : --manifest-path example_no_std/Cargo.toml
24
+ - name : cargo test
25
+ uses : actions-rs/cargo@v1
26
+ with :
27
+ command : test
28
+ args : --workspace --features=std
29
+ rustfmt :
30
+ name : rustfmt (nightly)
31
+ runs-on : ubuntu-latest
32
+ steps :
33
+ - uses : actions/checkout@v2
34
+ - uses : actions-rs/toolchain@v1
35
+ with :
36
+ profile : minimal
37
+ toolchain : nightly
38
+ components : rustfmt
39
+ - name : cargo +nightly fmt
40
+ uses : actions-rs/cargo@v1
41
+ with :
42
+ command : fmt
43
+ args : --all -- --check
44
+ # don't forget the no_std example!
45
+ - name : cargo +nightly fmt (example_no_std)
46
+ uses : actions-rs/cargo@v1
47
+ with :
48
+ command : fmt
49
+ args : --manifest-path example_no_std/Cargo.toml
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments