name: CI
on:
push:
branches: '*'
pull_request:
branches: '*'
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: 'true'
- run: cargo test --locked --no-fail-fast -- --nocapture
env:
RUST_BACKTRACE: 1
- run: cargo clippy --no-deps -- -D warnings
- run: cargo fmt --all --check