| 1 |
name: tests |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: |
| 6 |
- "*" |
| 7 |
|
| 8 |
pull_request: |
| 9 |
|
| 10 |
env: |
| 11 |
RUSTFLAGS: "-D warnings" |
| 12 |
RUST_BACKTRACE: "1" |
| 13 |
|
| 14 |
jobs: |
| 15 |
cargo_tests: |
| 16 |
name: ${{ matrix.os }} ${{ matrix.rust_channel }} |
| 17 |
runs-on: ${{ matrix.os }} |
| 18 |
strategy: |
| 19 |
fail-fast: false |
| 20 |
matrix: |
| 21 |
os: ["ubuntu-latest", "macOS-latest", "windows-latest"] |
| 22 |
rust_channel: [stable, beta, nightly] |
| 23 |
|
| 24 |
steps: |
| 25 |
- uses: actions/checkout@v4 |
| 26 |
- uses: dtolnay/rust-toolchain@master |
| 27 |
with: |
| 28 |
toolchain: ${{ matrix.rust_channel }} |
| 29 |
- run: cargo test |
| 30 |
- run: cargo test --no-default-features |
| 31 |
- run: cargo test --all-features |
| 32 |
|
| 33 |
- name: run test_wait_try_wait_race for 5 minutes |
| 34 |
run: cargo test --all-features |
| 35 |
env: |
| 36 |
SHARED_CHILD_RACE_TEST_SECONDS: 300 |