Skip to content

Commit

Permalink
add cargo-hack check
Browse files Browse the repository at this point in the history
- since we introduced feature flags for the first time, use cargo-hack
  to test all possible combinations of them

Signed-off-by: mimir-d <[email protected]>
  • Loading branch information
mimir-d committed Oct 8, 2024
1 parent e7b160b commit cc17c5e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,16 @@ jobs:
uses: giraffate/clippy-action@v1
with:
reporter: 'github-pr-check'
github_token: ${{ secrets.GITHUB_TOKEN }}
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
4 changes: 3 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -66,4 +68,4 @@ jobs:
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
env_vars: OS,RUSTVER
env_vars: OS,RUSTVER

0 comments on commit cc17c5e

Please sign in to comment.