name: CI
on:
push:
branches:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Build
run: cargo build --all-features
- name: Run tests
run: cargo test --all-features
- name: Clippy
run: cargo clippy --all-features -- -D warnings
- name: Check formatting
run: cargo fmt -- --check