fix(release): retry gh pr merge to cover GraphQL propagation lag #27
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: CI | |
| # Adapted from openai/codex-plugin-cc's pull-request-ci.yml. | |
| # Modified by JohnnyVicious (2026): wraps OpenCode (not Codex), so installs | |
| # `opencode-ai` instead of `@openai/codex` for the integration tests, and | |
| # runs only on a single Node version matching the package.json | |
| # `engines.node` floor. (Apache License 2.0 §4(b) modification notice — | |
| # see NOTICE.) | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Install OpenCode CLI | |
| run: npm install -g opencode-ai | |
| - name: Check version metadata is in sync | |
| run: npm run check-version | |
| - name: Syntax-check companion scripts | |
| run: | | |
| node --check plugins/opencode/scripts/opencode-companion.mjs | |
| node --check plugins/opencode/scripts/stop-review-gate-hook.mjs | |
| node --check plugins/opencode/scripts/lib/git.mjs | |
| node --check plugins/opencode/scripts/lib/prompts.mjs | |
| node --check plugins/opencode/scripts/lib/process.mjs | |
| node --check plugins/opencode/scripts/lib/opencode-server.mjs | |
| node --check plugins/opencode/scripts/lib/review-agent.mjs | |
| node --check plugins/opencode/scripts/lib/model.mjs | |
| node --check scripts/bump-version.mjs | |
| - name: Run tests | |
| run: npm test |