-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (32 loc) · 1.1 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
on: [push, pull_request]
name: Tests
jobs:
test:
strategy:
matrix:
rust:
- stable
- beta
- nightly
- 1.82.0 # MSRV for tests
include:
- test_features: ""
- all_test_features: ""
- rust: nightly
test_features: ",nightly,nightly_tests"
all_test_features: "--features=nightly,nightly_tests"
fail-fast: false
runs-on: ubuntu-latest
env:
RUSTFLAGS: "-D warnings"
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- name: Run tests (no default features)
run: cargo test --release --verbose --all --no-default-features ${{ matrix.all_test_features }}
- name: Run tests (log feature)
run: cargo test --release --verbose --all --no-default-features --features=log${{ matrix.test_features }}
- name: Run tests (log_parallelism feature)
run: cargo test --release --verbose --all --no-default-features --features=log_parallelism${{ matrix.test_features }}