feat: add GitHub Actions workflow for continuous integration with Rust

This commit is contained in:
2025-08-24 14:22:59 +02:00
parent 3c9f288715
commit c9d67c8cd9

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

@@ -0,0 +1,33 @@
name: Continuous Integration
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build_and_test:
name: Build and Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Check formatting
run: cargo fmt -- --check
- name: Run Clippy
run: cargo clippy -- -D warnings
- name: Run tests
run: cargo test