Check all feature combinations in the CI

This commit is contained in:
Dominik Nakamura 2021-01-10 02:04:25 +09:00
parent 6d32eba6b6
commit 86abb39cc0
No known key found for this signature in database
GPG key ID: E4C6A749B2491910
2 changed files with 24 additions and 0 deletions

View file

@ -5,3 +5,6 @@ end_of_line = lf
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
[*.yml]
indent_size = 2

View file

@ -5,6 +5,27 @@ on:
branches:
- main
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Install cargo-hack
uses: actions-rs/cargo@v1
with:
command: install
args: cargo-hack
- name: Check feature combinations
uses: actions-rs/cargo@v1
with:
command: hack
args: clippy --feature-powerset --no-dev-deps
test:
name: Test
runs-on: ${{ matrix.os }}