name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install minimal nightly with clippy and rustfmt
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
components: rustfmt, clippy
- name: test
run: cargo test --all-features --verbose -- --test-threads=1
- name: fmt
run: cargo fmt --verbose --all -- --check
- name: clippy
run: cargo clippy -- -D warnings