Skip to content

feat: Phase 4 - Validation & Status Command #105

feat: Phase 4 - Validation & Status Command

feat: Phase 4 - Validation & Status Command #105

Workflow file for this run

# .github/workflows/ci.yml
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
test:
name: Test on ${{ matrix.os }}
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
rust: [stable]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Cache cargo registry
uses: actions/cache@v4
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo index
uses: actions/cache@v4
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
- name: Cache target directory
uses: actions/cache@v4
with:
path: target
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
- name: Check formatting
run: cargo fmt --all -- --check
- name: Run clippy (lint)
run: cargo clippy --workspace --all-features -- -D warnings
- name: Build (debug)
run: cargo build --workspace --all-features
- name: Build (release)
run: cargo build --workspace --all-features --release
- name: Run tests
run: cargo test --workspace --all-features
- name: Test install script (Unix)
if: runner.os != 'Windows'
run: |
chmod +x install.sh
./install.sh --help
# Note: Windows install.ps1 will be added in Phase 2.7
# For now, we verify Windows build/test but skip install script