Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci improvements #736

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 14 additions & 19 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ on:
pull_request:
push:
branches:
- master
- main
- staging
- trying

env:
RUSTFLAGS: -Dwarnings
Expand All @@ -31,7 +33,7 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: check
args: --all --bins --examples
args: --workspace --bins --examples --tests

- name: check avoid-dev-deps
uses: actions-rs/cargo@v1
Expand All @@ -44,13 +46,13 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: check
args: --all --bins --examples --tests --features unstable
args: --workspace --bins --examples --tests --features unstable

- name: check no-default-features
uses: actions-rs/cargo@v1
with:
command: check
args: --no-default-features
args: --no-default-features --workspace --bins --examples --tests

- name: check benches
uses: actions-rs/cargo@v1
Expand All @@ -62,35 +64,28 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: test
args: --all
args: --workspace

- name: tests unstable
uses: actions-rs/cargo@v1
with:
command: test
args: --all --features unstable
args: --workspace --features unstable

check_fmt_and_docs:
check_fmt_clippy_docs:
name: Checking fmt, clippy, and docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master

- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true

- name: setup
run: |
rustup component add clippy rustfmt
rustc --version

- name: clippy
run: cargo clippy --tests --examples -- -D warnings
run: cargo clippy --workspace --bins --examples --tests -- -D warnings

- name: clippy benches
run: cargo clippy --workspace --benches --features __internal__bench -- -D warnings

- name: fmt
run: cargo fmt --all -- --check

- name: Docs
run: cargo doc --no-deps --features unstable
run: cargo doc --no-deps