Implement: Workflow: replan — handle requirement changes mid-build #12
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: PR Validation | |
| on: | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Validate package.json | |
| run: node -e "require('./package.json')" | |
| - name: Validate CLI syntax | |
| run: node -c bin/cli.js | |
| - name: Smoke test - Claude platform | |
| run: | | |
| node bin/cli.js --platform claude ./test-output | |
| test -d ./test-output/_sam | |
| test -d ./test-output/.claude/commands/sam | |
| echo "Claude platform: OK" | |
| - name: Smoke test - Cursor platform | |
| run: | | |
| node bin/cli.js --platform cursor ./test-output-cursor | |
| test -d ./test-output-cursor/_sam | |
| test -d ./test-output-cursor/.cursor/rules | |
| echo "Cursor platform: OK" | |
| - name: Smoke test - Antigravity platform | |
| run: | | |
| node bin/cli.js --platform antigravity ./test-output-antigravity | |
| test -d ./test-output-antigravity/_sam | |
| test -d ./test-output-antigravity/.agent/skills | |
| echo "Antigravity platform: OK" | |
| - name: Smoke test - Gemini platform | |
| run: | | |
| node bin/cli.js --platform gemini ./test-output-gemini | |
| test -d ./test-output-gemini/_sam | |
| test -d ./test-output-gemini/.gemini/skills | |
| echo "Gemini platform: OK" | |
| - name: Smoke test - Copilot platform | |
| run: | | |
| node bin/cli.js --platform copilot ./test-output-copilot | |
| test -d ./test-output-copilot/_sam | |
| test -d ./test-output-copilot/copilot-integration | |
| test -f ./test-output-copilot/copilot-integration/instructions.md | |
| echo "Copilot platform: OK" | |
| - name: Smoke test - All platforms | |
| run: | | |
| node bin/cli.js --platform all ./test-output-all | |
| test -d ./test-output-all/_sam | |
| test -d ./test-output-all/.claude/commands/sam | |
| test -d ./test-output-all/.cursor/rules | |
| test -d ./test-output-all/.agent/skills | |
| test -d ./test-output-all/.gemini/skills | |
| test -d ./test-output-all/copilot-integration | |
| echo "All platforms: OK" | |
| - name: Verify templates in sync | |
| run: node scripts/verify-sync.js | |
| - name: Verify agent manifest | |
| run: node scripts/verify-manifest.js |