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 }}