Skip to content

Fix supervisor example child builder and clippy lint config #59

Fix supervisor example child builder and clippy lint config

Fix supervisor example child builder and clippy lint config #59

Workflow file for this run

# Shallow release gates — fast checks for every PR and every release.
# All steps must pass. Failure at any step halts the workflow.
name: Shallow Gates
on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_call: # reusable by release workflow
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
shallow-gates:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: "1.94"
components: rustfmt, clippy
- name: Format check (fmt)
id: fmt
run: cargo fmt --check
- name: Compile check (check)
id: check
run: cargo check --all-targets
- name: Lint (clippy)
id: clippy
run: cargo clippy --all-targets -- -D warnings
- name: Unit and integration tests (test)
id: test
run: cargo test
- name: Documentation (doc)
id: doc
run: cargo doc --no-deps --document-private-items
- name: Publish dry-run (publish_dry_run)
id: publish_dry_run
run: cargo publish --dry-run
- name: Coding standard check (coding_standard)
id: coding_standard
run: bash scripts/check-coding-standard.sh
- name: Maintainability check (maintainability)
id: maintainability
run: bash scripts/check-maintainability.sh
- name: Generate SBOM (generate_sbom)
id: generate_sbom
run: bash scripts/generate-sbom.sh
- name: Validate SBOM (validate_sbom)
id: validate_sbom
run: bash scripts/validate-sbom.sh
# ---- Cross-platform compile check (core supervision only on non-Unix) ----
cross-platform-check:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: "1.94"
- name: Compile check (${{ matrix.os }})
run: cargo check