tracker/.github/workflows/ci.yml
m1ngsama 0e9c5a33c3 ci: migrate workflow from Python to Rust
Updated ci.yml to run cargo test/check/fmt/clippy. Deleted python-specific release.yml.
2025-12-18 13:16:40 +08:00

47 lines
No EOL
900 B
YAML

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Check
run: cargo check --verbose
- name: Run tests
run: cargo test --verbose
- name: Format Check
run: cargo fmt -- --check
- name: Lint (Clippy)
run: cargo clippy -- -D warnings