ci: Add GitHub Actions workflow with clippy and fmt checks

This commit is contained in:
glitchySid
2025-12-29 00:46:20 +05:30
parent 1a72116b9d
commit 2dc269b148
2 changed files with 26 additions and 2 deletions

26
.github/workflows/rust.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Run clippy
run: cargo clippy -- -D warnings
- name: Check formatting
run: cargo fmt -- --check