From cc17c5eeeb5ab763bf2abe178e75b7551b456879 Mon Sep 17 00:00:00 2001 From: mimir-d Date: Tue, 8 Oct 2024 19:39:14 +0100 Subject: [PATCH] add cargo-hack check - since we introduced feature flags for the first time, use cargo-hack to test all possible combinations of them Signed-off-by: mimir-d --- .github/workflows/check.yaml | 14 +++++++++++++- .github/workflows/test.yaml | 4 +++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 86ee7ba..ae2b71f 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -50,4 +50,16 @@ jobs: uses: giraffate/clippy-action@v1 with: reporter: 'github-pr-check' - github_token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + github_token: ${{ secrets.GITHUB_TOKEN }} + + hack: + runs-on: ubuntu-latest + name: ubuntu / stable / features + steps: + - uses: actions/checkout@v4 + - name: Install stable + uses: dtolnay/rust-toolchain@stable + - name: cargo install cargo-hack + uses: taiki-e/install-action@cargo-hack + - name: cargo hack + run: cargo hack --feature-powerset --no-dev-deps check diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index d677081..0776c8a 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -32,6 +32,7 @@ jobs: toolchain: ${{ matrix.toolchain }} - name: cargo test --locked run: cargo test --locked --all-features + os-check: runs-on: ${{ matrix.os }} name: ${{ matrix.os }} / stable @@ -46,6 +47,7 @@ jobs: uses: dtolnay/rust-toolchain@stable - name: cargo test run: cargo test --locked --all-features --all-targets + coverage: runs-on: ubuntu-latest name: ubuntu / stable / coverage @@ -66,4 +68,4 @@ jobs: with: fail_ci_if_error: true token: ${{ secrets.CODECOV_TOKEN }} - env_vars: OS,RUSTVER \ No newline at end of file + env_vars: OS,RUSTVER