22 lines
547 B
YAML
22 lines
547 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
|
|
- 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
|