docs: rename readme storybook section #55
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: CLIARE on CLIARE | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| schedule: | |
| - cron: "17 9 * * 1" | |
| workflow_dispatch: | |
| inputs: | |
| profile: | |
| description: CLIARE traversal profile to run. | |
| required: false | |
| default: standard | |
| type: choice | |
| options: | |
| - quick | |
| - standard | |
| - deep | |
| permissions: | |
| contents: read | |
| jobs: | |
| cliare-on-cliare: | |
| name: CLIARE on CLIARE | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 45 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Select profile | |
| id: profile | |
| shell: bash | |
| env: | |
| EVENT_NAME: ${{ github.event_name }} | |
| INPUT_PROFILE: ${{ github.event.inputs.profile || '' }} | |
| run: | | |
| set -euo pipefail | |
| if [[ -n "$INPUT_PROFILE" ]]; then | |
| profile="$INPUT_PROFILE" | |
| elif [[ "$EVENT_NAME" == "pull_request" ]]; then | |
| profile="quick" | |
| elif [[ "$EVENT_NAME" == "schedule" ]]; then | |
| profile="deep" | |
| else | |
| profile="standard" | |
| fi | |
| case "$profile" in | |
| quick) | |
| concurrency=2 | |
| ;; | |
| standard) | |
| concurrency=4 | |
| ;; | |
| deep) | |
| concurrency=8 | |
| ;; | |
| *) | |
| echo "unsupported CLIARE profile: $profile" >&2 | |
| exit 2 | |
| ;; | |
| esac | |
| { | |
| echo "profile=$profile" | |
| echo "concurrency=$concurrency" | |
| } >> "$GITHUB_OUTPUT" | |
| - name: Build CLIARE | |
| run: cargo build --locked --bin cliare | |
| - name: Measure CLIARE | |
| id: measure | |
| uses: ./ | |
| with: | |
| target: ./target/debug/cliare | |
| cliare-command: ./target/debug/cliare | |
| out: .cliare/cliare-on-cliare | |
| profile: ${{ steps.profile.outputs.profile }} | |
| concurrency: ${{ steps.profile.outputs.concurrency }} | |
| extra-args: --refresh | |
| artifact-name: cliare-on-cliare-${{ steps.profile.outputs.profile }} | |
| - name: Print CLIARE maintainer report | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| out=".cliare/cliare-on-cliare" | |
| if [[ -f ".github/cliare-on-cliare/issue-dispositions.json" ]]; then | |
| cp ".github/cliare-on-cliare/issue-dispositions.json" "$out/issue-dispositions.json" | |
| fi | |
| ./target/debug/cliare issues list --out "$out" --format json > "$out/issues-list.json" | |
| ./target/debug/cliare report maintainer --out "$out" --write >/dev/null | |
| ./target/debug/cliare report harness --out "$out" --write >/dev/null | |
| ./target/debug/cliare report maintainer --out "$out" --format markdown > "$out/persona-maintainer-ci.md" | |
| cat "$out/persona-maintainer-ci.md" | |
| if [[ -n "${GITHUB_STEP_SUMMARY:-}" ]]; then | |
| { | |
| echo | |
| echo "## CLIARE Maintainer Report" | |
| echo | |
| cat "$out/persona-maintainer-ci.md" | |
| } >> "$GITHUB_STEP_SUMMARY" | |
| fi |