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

View file

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