Skip to content

Commit

Permalink
ci: add cargo test feature matrix
Browse files Browse the repository at this point in the history
Adopts a similar feature matrix approach as the asn1-rs CI.
  • Loading branch information
cpu authored and chifflier committed Apr 15, 2024
1 parent 680d231 commit f1a4321
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,23 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
- run: cargo test --all-features

test_features:
name: Test suite (with features)
runs-on: ubuntu-latest
strategy:
matrix:
features:
- --no-default-features
- --features=default
- --all-features
- --features=verify
- --features=validate
steps:
- uses: actions/checkout@v4
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
- run: cargo test ${{ matrix.features }}

fmt:
name: Rustfmt
runs-on: ubuntu-latest
Expand Down

0 comments on commit f1a4321

Please sign in to comment.