Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test without default features #63

Merged
merged 1 commit into from
Jun 24, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
- 1.51.0
features:
- default
- no_defaults
- file_locks
include:
- rust: nightly
Expand Down Expand Up @@ -56,7 +57,7 @@ jobs:
env:
RUST_TEST_THREADS: 3 # So the parallel tests have enough threads
RUST_LOG: debug
if: ${{ matrix.features != 'all' }}
if: ${{ matrix.features != 'all' && matrix.features != 'no_defaults' }}
- name: Build and test all features
uses: actions-rs/cargo@v1.0.3
with:
Expand All @@ -66,6 +67,15 @@ jobs:
env:
RUST_TEST_THREADS: 3 # So the parallel tests have enough threads
RUST_LOG: debug
- name: Build and test without default features
uses: actions-rs/cargo@v1.0.3
with:
command: test
args: --no-default-features -- --nocapture
if: ${{ matrix.features == 'no_defaults' }}
env:
RUST_TEST_THREADS: 3 # So the parallel tests have enough threads
RUST_LOG: debug

multi-os-testing:
name: Test suite
Expand Down