Skip to content

Commit f16c939

Browse files
committed
chore: Add tests for alloc feature in GitHub workflow
1 parent 53f628c commit f16c939

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
matrix:
3232
os: [ ubuntu-latest, macos-latest, windows-latest ]
3333
rust: [ stable, beta ]
34+
features: [ 'std', 'alloc', 'std,lender', 'alloc,lender' ]
3435
runs-on: ${{ matrix.os }}
3536
timeout-minutes: 5
3637
if: github.event_name != 'schedule' && github.event_name != 'workflow_dispatch' && !endsWith(github.ref, '-nightly')
@@ -41,11 +42,11 @@ jobs:
4142
toolchain: ${{ matrix.rust }}
4243
override: true
4344
- name: Check
44-
run: cargo check --verbose
45+
run: cargo check --verbose --features ${{ matrix.features }} --no-default-features
4546
- name: Tests
46-
run: cargo test --verbose --features lender -- --show-output
47+
run: cargo test --verbose --features ${{ matrix.features }} --no-default-features -- --show-output
4748
- name: Ignored tests
48-
run: cargo test --verbose --features lender -- --show-output --ignored
49+
run: cargo test --verbose --features ${{ matrix.features }} --no-default-features -- --show-output --ignored
4950
lint:
5051
runs-on: ubuntu-latest
5152
timeout-minutes: 5

0 commit comments

Comments
 (0)