37 lines
701 B
YAML
37 lines
701 B
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
rust:
|
|
name: Rust workspace
|
|
runs-on: macos-15
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Use pinned Rust toolchain
|
|
run: rustup show
|
|
|
|
- name: Check formatting
|
|
run: cargo fmt --all --check
|
|
|
|
- name: Check workspace
|
|
run: cargo check --workspace --all-targets
|
|
|
|
- name: Lint workspace
|
|
run: cargo clippy --workspace --all-targets -- -D warnings
|
|
|
|
- name: Test workspace
|
|
run: cargo test --workspace --all-targets
|
|
|
|
- name: Audit source file size
|
|
run: scripts/audit_source_lines.sh
|