Skip to content

chore(release): v0.1.0 #11

chore(release): v0.1.0

chore(release): v0.1.0 #11

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: Format / Clippy / Test / Docs
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy
- name: Cache dependencies
uses: Swatinem/rust-cache@v2
- name: Check formatting
run: cargo fmt --all --check
- name: Check clippy
run: cargo clippy --all-targets -- -D warnings
- name: Run tests
run: cargo test --all
- name: Build (release)
run: cargo build --release
- name: Check documentation
run: cargo doc --no-deps
coverage:
name: Coverage (>=80% lines)
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: llvm-tools-preview
- name: Cache dependencies
uses: Swatinem/rust-cache@v2
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
# Unit + integration (conformance) coverage, CI-gated at >=80% lines (ecosystem standard #157).
# The whole crate — the wire + framing, caps, timing, the per-direction state machine, per-link
# told-state, provenance/first-hand tracking, and the PexEngine — is exercised over in-memory
# links (two engines pumped against each other, NO real network). No file is excluded.
- name: Run tests with coverage (gate >=80% lines)
run: >-
cargo llvm-cov --all
--fail-under-lines 80
--lcov --output-path lcov.info
- name: Upload coverage report
uses: actions/upload-artifact@v4
with:
name: lcov-coverage
path: lcov.info
if-no-files-found: error