chore(release): v0.1.1 #15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: Install cargo-nextest | |
| uses: taiki-e/install-action@nextest | |
| - name: Check formatting | |
| run: cargo fmt --all --check | |
| - name: Check clippy | |
| run: cargo clippy --all-targets -- -D warnings | |
| # nextest natively retries + reports flaky tests (failed-then-passed on retry is surfaced | |
| # as "flaky" in the run summary, not silently hidden) — see CLAUDE.md flaky-test-management. | |
| - name: Run tests (nextest, flaky-aware) | |
| run: cargo nextest run --all --retries 2 | |
| - 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 | |
| - name: Install cargo-nextest | |
| uses: taiki-e/install-action@nextest | |
| # 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. | |
| # Run via nextest (retries 2) so flaky tests are retried + reported, not silently hidden. | |
| - name: Run tests with coverage (nextest, gate >=80% lines) | |
| run: >- | |
| cargo llvm-cov nextest --all | |
| --retries 2 | |
| --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 |