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 19, 2024
1 parent 6646c95 commit 39af1f1
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,18 @@ jobs:
test:
name: Test Suite
runs-on: ubuntu-latest
strategy:
matrix:
features:
- --no-default-features
- --all-features
- --features=serialize
- --features=integers
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo test --all-features
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
- run: cargo test ${{ matrix.features }}

fmt:
name: Rustfmt
Expand Down

0 comments on commit 39af1f1

Please sign in to comment.