name: CI
on:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install minimal nightly with clippy and rustfmt
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
components: rustfmt, clippy
- name: Build
run: cargo build
- name: Run tests
run: cargo test
- name: Run formatter
run: cargo +nightly fmt -- --check
- name: Check formatting
run: cargo +nightly clippy -- -D warnings