Skip to content

Commit 319bd79

Browse files
committed
CI: Build and test with default features disabled
1 parent fd36fd5 commit 319bd79

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ jobs:
2020
- macOS
2121
- Windows
2222

23+
cargo-opts:
24+
- --all-features
25+
- --no-default-features
26+
2327
include:
2428
- name: beta
2529
toolchain: beta
@@ -52,13 +56,9 @@ jobs:
5256
target
5357
key: ${{ runner.os }}-test-${{ steps.tc.outputs.rustc_hash }}-${{ hashFiles('**/Cargo.toml') }}
5458

55-
- name: Build all features
56-
if: matrix.features == ''
57-
run: cargo build --all-features
59+
- run: cargo build ${{ matrix.cargo-opts }}
5860

59-
- name: Test all features
60-
if: matrix.features == ''
61-
run: cargo test --all-features
61+
- run: cargo test ${{ matrix.cargo-opts }}
6262

6363
clippy:
6464
name: Run clippy

0 commit comments

Comments
 (0)