Skip to content

Check and Test

Check and Test #74

Workflow file for this run

name: Check and Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch: { }
env:
CARGO_TERM_COLOR: always
DONT_SAVE_RESULT: 1
RAYON_NUM_THREADS: 4
jobs:
run_tests:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
name: Test `cargo check/test` on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: "true"
- name: Run single-thread tests
run: |
cargo check
cargo test
- name: Run multi-thread tests
run: |
cargo check --features rayon
cargo test --features rayon