Skip to content

Commit 63d3de2

Browse files
committed
Rust CI: run tests with --no-default-features and --all-features
1 parent e94d819 commit 63d3de2

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/rust_ci.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,58 @@ jobs:
123123
token: ${{secrets.CODECOV_TOKEN}}
124124
flags: ironfish-rust
125125

126+
ironfish_rust_no_default_features:
127+
name: Test ironfish-rust (no default features)
128+
runs-on: ubuntu-latest
129+
strategy:
130+
matrix:
131+
shard: [1/2, 2/2]
132+
133+
steps:
134+
- uses: actions/checkout@v4
135+
136+
- name: Install nextest
137+
uses: taiki-e/install-action@nextest
138+
139+
- name: Cache Rust
140+
uses: Swatinem/rust-cache@v2
141+
with:
142+
shared-key: base
143+
144+
- name: Run tests
145+
run: |
146+
cargo nextest run \
147+
--package ironfish \
148+
--release \
149+
--no-default-features \
150+
--partition count:${{ matrix.shard }}
151+
152+
ironfish_rust_all_features:
153+
name: Test ironfish-rust (all features)
154+
runs-on: ubuntu-latest
155+
strategy:
156+
matrix:
157+
shard: [1/2, 2/2]
158+
159+
steps:
160+
- uses: actions/checkout@v4
161+
162+
- name: Install nextest
163+
uses: taiki-e/install-action@nextest
164+
165+
- name: Cache Rust
166+
uses: Swatinem/rust-cache@v2
167+
with:
168+
shared-key: base
169+
170+
- name: Run tests (all features)
171+
run: |
172+
cargo nextest run \
173+
--package ironfish \
174+
--release \
175+
--all-features \
176+
--partition count:${{ matrix.shard }}
177+
126178
ironfish_zkp:
127179
name: Test ironfish-zkp
128180
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)