Skip to content

Commit

Permalink
github action build and test all features
Browse files Browse the repository at this point in the history
  • Loading branch information
mztikk committed Jun 30, 2023
1 parent a033bbd commit 3ac9261
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/rust-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,21 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- uses: dtolnay/rust-toolchain@stable
- name: Install cargo-hack
uses: taiki-e/install-action@cargo-hack

- name: Build each feature
run: cargo hack build --verbose --each-feature
- name: Run tests each feature
run: cargo hack test --verbose --each-feature

- name: Build all features
run: cargo hack build --verbose --all-features
- name: Run tests all features
run: cargo hack test --verbose --all-features

- name: Build feature-powerset
run: cargo hack build --verbose --feature-powerset
- name: Run tests feature-powerset
run: cargo hack test --verbose --feature-powerset

0 comments on commit 3ac9261

Please sign in to comment.