Skip to content

.github: Add CI workflow for tests/fmt #3

.github: Add CI workflow for tests/fmt

.github: Add CI workflow for tests/fmt #3

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
CARGO_TERM_COLOR: always
jobs:
checks:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo build artifacts
uses: Swatinem/rust-cache@v2
- name: Enforce formatting
run: cargo fmt --all -- --check
- name: Lint with Clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Run tests
run: cargo test --all --all-features