Skip to content

Commit

Permalink
chore: Add cargo-hack to check features (#105)
Browse files Browse the repository at this point in the history
* chore: Add `cargo-hack` to check features

Signed-off-by: Lucio Franco <luciofranco14@gmail.com>

* Update .github/workflows/CI.yml

Co-Authored-By: Taiki Endo <te316e89@gmail.com>
  • Loading branch information
LucioFranco and taiki-e authored Oct 31, 2019
1 parent 3ce61d9 commit 108bad0
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,14 @@ jobs:
- uses: actions/checkout@master
- name: Install rustfmt
run: rustup component add rustfmt
- name: Install cargo-hack
run: cargo install cargo-hack
- name: Check fmt
run: cargo fmt -- --check
- name: Check all
run: cargo check --all
- name: Check with no default features
run: cargo check -p tonic --no-default-features
- name: Check with transport no tls
run: cargo check -p tonic
- name: Check with transport w/ openssl
run: cargo check -p tonic --features openssl
- name: Check with transport w/ rustls
run: cargo check -p tonic --features rustls
- name: Check features
run: cargo hack check --all --each-feature --no-dev-deps
- name: Check all targets
run: cargo check --all --all-targets --all-features

test:
runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit 108bad0

Please sign in to comment.