Merge remote-tracking branch 'origin/develop' into codex/unify-model-… #3
Workflow file for this run
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: Protocol Audit | ||
| on: | ||
| pull_request: | ||
| branches: ["**"] | ||
| workflow_dispatch: | ||
| jobs: | ||
| protocol-audit: | ||
| name: Message Protocol Audit (blocking) | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| - name: Set up Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: "20" | ||
| - name: Set up pnpm | ||
| uses: pnpm/action-setup@v3 | ||
| with: | ||
| version: 10.24.0 | ||
| - name: Install dependencies | ||
| run: pnpm install --frozen-lockfile | ||
| - name: Run protocol audit (phase B: blocking) | ||
| id: audit | ||
| run: | | ||
| set -o pipefail | ||
| pnpm protocol:check -- --format both | tee protocol-audit.log | ||
| - name: Upload protocol audit artifacts | ||
| if: always() | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: protocol-audit-report | ||
| if-no-files-found: warn | ||
| path: | | ||
| protocol-audit.log | ||
| protocol-audit-report.json | ||
| - name: Write workflow summary | ||
| if: always() | ||
| run: | | ||
| echo "## Message Protocol Audit (Phase B)" >> "$GITHUB_STEP_SUMMARY" | ||
| echo "" >> "$GITHUB_STEP_SUMMARY" | ||
| echo "- Mode: blocking (ERROR will fail job)" >> "$GITHUB_STEP_SUMMARY" | ||
| echo "- Step outcome: \`${{ steps.audit.outcome }}\`" >> "$GITHUB_STEP_SUMMARY" | ||
| echo "- Report artifact: \`protocol-audit-report\`" >> "$GITHUB_STEP_SUMMARY" | ||