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