name: CI
on:
push:
branches:
pull_request:
branches:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install rustc and clippy nightly
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
components: cargo, rustc, clippy, rustfmt
- name: "Unit Tests"
run: cargo test
- name: "Lint Checks"
run: cargo clippy --no-default-features -- -D warnings
- name: "Formatting Checks"
run: cargo fmt --check