44 pull_request :
55 push :
66 branches :
7- - master
7+ - main
8+ - staging
9+ - trying
810
911env :
1012 RUSTFLAGS : -Dwarnings
3133 uses : actions-rs/cargo@v1
3234 with :
3335 command : check
34- args : --all --bins --examples
36+ args : --workspace --bins --examples --tests
3537
3638 - name : check avoid-dev-deps
3739 uses : actions-rs/cargo@v1
@@ -44,13 +46,13 @@ jobs:
4446 uses : actions-rs/cargo@v1
4547 with :
4648 command : check
47- args : --all --bins --examples --tests --features unstable
49+ args : --workspace --bins --examples --tests --features unstable
4850
4951 - name : check no-default-features
5052 uses : actions-rs/cargo@v1
5153 with :
5254 command : check
53- args : --no-default-features
55+ args : --no-default-features --workspace --bins --examples --tests
5456
5557 - name : check benches
5658 uses : actions-rs/cargo@v1
@@ -62,35 +64,33 @@ jobs:
6264 uses : actions-rs/cargo@v1
6365 with :
6466 command : test
65- args : --all
67+ args : --workspace
6668
6769 - name : tests unstable
6870 uses : actions-rs/cargo@v1
6971 with :
7072 command : test
71- args : --all --features unstable
73+ args : --workspace --features unstable
7274
73- check_fmt_and_docs :
75+ check_fmt_clippy_docs :
7476 name : Checking fmt, clippy, and docs
7577 runs-on : ubuntu-latest
7678 steps :
7779 - uses : actions/checkout@master
7880
79- - uses : actions-rs/toolchain@v1
80- with :
81- toolchain : nightly
82- override : true
83-
84- - name : setup
81+ - name : nightly setup
8582 run : |
86- rustup component add clippy rustfmt
87- rustc --version
83+ rustup toolchain install nightly
84+ rustup default nightly
8885
8986 - 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
9191
9292 - name : fmt
9393 run : cargo fmt --all -- --check
9494
9595 - name : Docs
96- run : cargo doc --no-deps --features unstable
96+ run : cargo doc --no-deps
0 commit comments