name: CI
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
jobs:
check:
name: Clippy and Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 with:
persist-credentials: false
- name: Install stable Rust
run: |
rustup toolchain install stable --profile minimal --component clippy --no-self-update
rustup default stable
- name: Run Clippy
run: cargo clippy --locked --all-targets --all-features -- -D warnings
- name: Run unit tests
run: cargo test --locked