name: CI
on:
push:
branches: ['**']
pull_request:
workflow_call:
permissions:
contents: read
jobs:
check:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: actions/setup-node@v4
with:
node-version: '22'
- uses: Swatinem/rust-cache@v2
- run: node --test tests/report-ui.cjs
- run: cargo fmt --all --check
- run: cargo clippy --locked --all-targets -- -D warnings
- run: cargo test --locked --all-targets
- run: cargo test --locked --doc