Run tests with both `--all-features` and `--no-default-features`

This commit is contained in:
Jack Grigg 2023-03-02 14:50:19 +00:00
parent 437d471b4d
commit 93b9fa2351
1 changed files with 4 additions and 3 deletions

View File

@ -4,16 +4,17 @@ on: [push, pull_request]
jobs:
test:
name: Test on ${{ matrix.os }}
name: Test on ${{ matrix.os }} with ${{ matrix.features }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
features: [--all-features, --no-default-features]
continue-on-error: true
steps:
- uses: actions/checkout@v3
- name: Run tests
run: cargo test --verbose --release --all-features
run: cargo test --verbose --release ${{ matrix.features }}
no-std:
name: Check no-std target ${{ matrix.target }}