Skip to content

Commit f384eb1

Browse files
committed
Add workflow step for running testsuite of only one feature
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
1 parent 052c950 commit f384eb1

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/msrv.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,37 @@ jobs:
8181
command: test
8282
args: --all-features
8383

84+
test-feature:
85+
needs: [check]
86+
name: Test Suite, only some features enabled
87+
runs-on: ubuntu-latest
88+
strategy:
89+
matrix:
90+
rust:
91+
- stable
92+
feature:
93+
- json
94+
- yaml
95+
- hjson
96+
- ini
97+
- json5
98+
- preserve_order
99+
steps:
100+
- name: Checkout sources
101+
uses: actions/checkout@v2
102+
103+
- name: Install toolchain
104+
uses: actions-rs/toolchain@v1
105+
with:
106+
toolchain: ${{ matrix.rust }}
107+
override: true
108+
109+
- name: Run cargo test ${{ matrix.feature }}
110+
uses: actions-rs/cargo@v1
111+
with:
112+
command: test
113+
args: --no-default-features --features ${{ matrix.feature }}
114+
84115
fmt:
85116
needs: [check]
86117
name: Rustfmt

0 commit comments

Comments
 (0)