Harden scout lock recovery after #239 #74
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: Pull Request Contracts | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: pull-request-contracts-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| contracts: | |
| name: Verify organization contracts | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Check out organization assets | |
| uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 | |
| with: | |
| path: organization | |
| persist-credentials: false | |
| - name: Resolve pinned Kaizen version | |
| id: versions | |
| run: | | |
| echo "kaizen_loop=$(node -p 'require(\"./organization/onboarding/versions.json\")[\"kaizen-loop\"]')" >> "$GITHUB_OUTPUT" | |
| - name: Check out pinned Kaizen schema | |
| uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 | |
| with: | |
| repository: kaizen-agents-org/kaizen-loop | |
| ref: ${{ steps.versions.outputs.kaizen_loop }} | |
| path: kaizen-loop | |
| persist-credentials: false | |
| - name: Set up Node.js | |
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| cache-dependency-path: kaizen-loop/package-lock.json | |
| - name: Build pinned Kaizen schema | |
| working-directory: kaizen-loop | |
| run: npm ci && npm run build | |
| - name: Verify contracts | |
| working-directory: organization | |
| env: | |
| KAIZEN_LOOP_ROOT: ${{ github.workspace }}/kaizen-loop | |
| run: bash scripts/run-pr-contracts.sh |