Skip to content

Commit f4c0ed1

Browse files
committed
chore: add step to test with default features to the GitHub CI workflow
1 parent d5bcb34 commit f4c0ed1

1 file changed

Lines changed: 24 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ jobs:
2727
- clippy
2828
- msrv
2929
- doc
30-
- no-std
31-
- test
30+
- test-no-std
31+
- test-default-features
32+
- test-all-featues
3233
steps:
3334
- run: exit 0
3435

@@ -76,8 +77,8 @@ jobs:
7677
- run: cargo +nightly fmt --check --all
7778
- uses: Swatinem/rust-cache@v2
7879

79-
test:
80-
name: Run tests
80+
test-all-featues:
81+
name: Run tests for all features
8182
runs-on: ${{ matrix.os }}
8283
needs: basic
8384
strategy:
@@ -106,7 +107,25 @@ jobs:
106107
args: --all-features --no-fail-fast
107108
- uses: Swatinem/rust-cache@v2
108109

109-
no-std:
110+
test-default-features:
111+
name: Test with default features
112+
runs-on: ubuntu-latest
113+
needs: basic
114+
steps:
115+
- name: Checkout sources
116+
uses: actions/checkout@v4
117+
- name: Install toolchain
118+
uses: actions-rs/toolchain@v1
119+
with:
120+
toolchain: stable
121+
override: true
122+
- name: Run cargo test
123+
uses: actions-rs/cargo@v1
124+
with:
125+
command: test
126+
- uses: Swatinem/rust-cache@v2
127+
128+
test-no-std:
110129
name: Test no-std support
111130
runs-on: ubuntu-latest
112131
needs: basic

0 commit comments

Comments
 (0)