socktop/.github/workflows/ci.yml
2025-08-08 17:33:30 -07:00

24 lines
602 B
YAML

name: CI
on:
push:
pull_request:
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Cargo fmt
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Build
run: cargo build --release --workspace
- name: Smoke test (client --help)
run: cargo run -p socktop -- --help