docs(postwire): require confirming the exact text before a visible write #481
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: Test Plugin | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| paths: | |
| - 'plugins/**' | |
| - 'scripts/**' | |
| - '.claude-plugin/**' | |
| - 'tests/**' | |
| - 'package.json' | |
| jobs: | |
| validate: | |
| name: Schema Validation | |
| runs-on: ubuntu-latest | |
| # Don't block PRs on failure - advisory only | |
| continue-on-error: true | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run validation | |
| run: npm run validate | |
| - name: Upload validation report | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: validation-reports | |
| path: | | |
| validation-report.txt | |
| hook-validation-report.json | |
| integration: | |
| name: Integration Tests | |
| runs-on: ubuntu-latest | |
| needs: validate | |
| # Don't block PRs on failure - advisory only | |
| continue-on-error: true | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run plugin test harness | |
| run: | | |
| chmod +x tests/plugin-test-harness.sh | |
| tests/plugin-test-harness.sh | |
| - name: Upload test results | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: test-results | |
| path: tests/test-results.json | |
| summary: | |
| name: Test Summary | |
| runs-on: ubuntu-latest | |
| needs: [validate, integration] | |
| if: always() | |
| steps: | |
| - name: Generate summary | |
| env: | |
| VALIDATE_RESULT: ${{ needs.validate.result }} | |
| INTEGRATION_RESULT: ${{ needs.integration.result }} | |
| run: | | |
| echo "## Test Results Summary" >> $GITHUB_STEP_SUMMARY | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| if [ "$VALIDATE_RESULT" == "success" ]; then | |
| echo "✅ **Schema Validation**: Passed" >> $GITHUB_STEP_SUMMARY | |
| else | |
| echo "⚠️ **Schema Validation**: Failed (advisory)" >> $GITHUB_STEP_SUMMARY | |
| fi | |
| if [ "$INTEGRATION_RESULT" == "success" ]; then | |
| echo "✅ **Integration Tests**: Passed" >> $GITHUB_STEP_SUMMARY | |
| else | |
| echo "⚠️ **Integration Tests**: Failed (advisory)" >> $GITHUB_STEP_SUMMARY | |
| fi | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| echo "_Note: Test failures are advisory and do not block merging._" >> $GITHUB_STEP_SUMMARY |