From 86abb39cc069ad368689b9e7199fd0467f244e8c Mon Sep 17 00:00:00 2001 From: Dominik Nakamura Date: Sun, 10 Jan 2021 02:04:25 +0900 Subject: [PATCH] Check all feature combinations in the CI --- .editorconfig | 3 +++ .github/workflows/ci.yml | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/.editorconfig b/.editorconfig index 0905835..033c634 100644 --- a/.editorconfig +++ b/.editorconfig @@ -5,3 +5,6 @@ end_of_line = lf indent_size = 4 insert_final_newline = true trim_trailing_whitespace = true + +[*.yml] +indent_size = 2 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4992eef..70a3d5f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }}