Skip to content

Wip

Wip #19

Workflow file for this run

name: CI
on:
pull_request:
branches:
- "**"
env:
CARGO_TERM_COLOR: always
jobs:
test_stable:
cancel-timeout-minutes: 20
strategy:
matrix:
rust_version:
- stable
os:
- ubuntu-latest
- windows-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust_version }}
- name: Set up cargo cache
uses: Swatinem/rust-cache@v2
with:
prefix-key: ${{ runner.os }}-cargo
- name: Build
run: cargo build -v
- name: Format
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy
- name: Run tests
run: cargo test -v -- --nocapture