ci: add ci tests, checks (clippy, fmt)
Some checks failed
CI / Check, test, lint (push) Failing after 51s

This commit is contained in:
2026-05-20 11:06:21 +02:00
parent 082323d815
commit 9bf111b417
6 changed files with 333 additions and 35 deletions

32
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,32 @@
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
ci:
name: Check, test, lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: Format
run: cargo fmt --check
- name: Build
run: cargo build
- name: Clippy
run: cargo clippy -- -D warnings
- name: Test
run: cargo test