4
4
pull_request :
5
5
push :
6
6
branches :
7
- - master
7
+ - main
8
+ - staging
9
+ - trying
8
10
9
11
env :
10
12
RUSTFLAGS : -Dwarnings
31
33
uses : actions-rs/cargo@v1
32
34
with :
33
35
command : check
34
- args : --all --bins --examples
36
+ args : --workspace --bins --examples --tests
35
37
36
38
- name : check avoid-dev-deps
37
39
uses : actions-rs/cargo@v1
@@ -44,13 +46,13 @@ jobs:
44
46
uses : actions-rs/cargo@v1
45
47
with :
46
48
command : check
47
- args : --all --bins --examples --tests --features unstable
49
+ args : --workspace --bins --examples --tests --features unstable
48
50
49
51
- name : check no-default-features
50
52
uses : actions-rs/cargo@v1
51
53
with :
52
54
command : check
53
- args : --no-default-features
55
+ args : --no-default-features --workspace --bins --examples --tests
54
56
55
57
- name : check benches
56
58
uses : actions-rs/cargo@v1
@@ -62,35 +64,33 @@ jobs:
62
64
uses : actions-rs/cargo@v1
63
65
with :
64
66
command : test
65
- args : --all
67
+ args : --workspace
66
68
67
69
- name : tests unstable
68
70
uses : actions-rs/cargo@v1
69
71
with :
70
72
command : test
71
- args : --all --features unstable
73
+ args : --workspace --features unstable
72
74
73
- check_fmt_and_docs :
75
+ check_fmt_clippy_docs :
74
76
name : Checking fmt, clippy, and docs
75
77
runs-on : ubuntu-latest
76
78
steps :
77
79
- uses : actions/checkout@master
78
80
79
- - uses : actions-rs/toolchain@v1
80
- with :
81
- toolchain : nightly
82
- override : true
83
-
84
- - name : setup
81
+ - name : nightly setup
85
82
run : |
86
- rustup component add clippy rustfmt
87
- rustc --version
83
+ rustup toolchain install nightly
84
+ rustup default nightly
88
85
89
86
- name : clippy
90
- run : cargo clippy --tests --examples -- -D warnings
87
+ run : cargo clippy --workspace --bins --examples --tests -- -D warnings
88
+
89
+ - name : clippy benches
90
+ run : cargo clippy --workspace --benches --features __internal__bench -- -D warnings
91
91
92
92
- name : fmt
93
93
run : cargo fmt --all -- --check
94
94
95
95
- name : Docs
96
- run : cargo doc --no-deps --features unstable
96
+ run : cargo doc --no-deps
0 commit comments