name: Build
on:
push:
branches:
pull_request:
branches:
env:
CARGO_TERM_COLOR: always
# Make sure CI fails on all warnings, including Clippy lints
RUSTFLAGS: "-Dwarnings"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Lint
run: |
cargo fmt --all -- --check
cargo clippy --all-targets --all-features
- name: Build
run: cargo build --verbose --all-features
- name: Run tests
run: cargo test --verbose --all-features