name: CI
on:
push:
branches:
pull_request:
branches:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
strategy:
matrix:
os:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
components: clippy, rust-src
- name: Build
run: cargo build --verbose
- name: clippy
run: cargo clippy -- -Dwarnings
- name: Run tests
run: cargo test --verbose