name: Rust
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
CARGO_TERM_COLOR: always
jobs:
test:
strategy:
matrix:
os:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: fmt
run: cargo fmt --check
- name: clippy
run: cargo clippy --no-deps --all-features --tests --benches --all --all-targets --examples
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose