docs: visualize streams, branches, and merges with real data #41
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 | |
| workflow_dispatch: | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| jobs: | |
| pre-commit: | |
| name: Pre-commit Gate | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 90 | |
| env: | |
| CARGO_TARGET_DIR: ${{ github.workspace }}/.cargo-target | |
| KEEL_VERSION: v0.2.1 | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - name: Install just | |
| uses: taiki-e/install-action@v2 | |
| with: | |
| tool: just | |
| - name: Install cargo-nextest | |
| uses: taiki-e/install-action@v2 | |
| with: | |
| tool: cargo-nextest | |
| - name: Restore Cargo cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| ${{ github.workspace }}/.cargo-target | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-cargo- | |
| - name: Install keel | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| curl --proto '=https' --tlsv1.2 -LsSf \ | |
| "https://github.com/spoke-sh/keel/releases/download/${KEEL_VERSION}/keel-installer.sh" | sh | |
| - name: Run quality checks | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| just quality | |
| - name: Run tests | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| just test | |
| - name: Run keel health | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| keel health |