name: test-workflow
on: push
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- run: bun install
- run: bun run test
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: clippy
- run: cargo build
- run: cargo clippy -- -D warnings
- run: cargo test --workspace
rustfmt:
name: Rustfmt check (nightly)
runs-on: ubuntu-latest steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt
- run: cargo fmt --all -- --check