Fix Node 18 CI test entrypoint #2
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 | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| ci: | |
| name: CI (Node ${{ matrix.node }}) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| strategy: | |
| matrix: | |
| node: | |
| - "18.18.2" | |
| - "22" | |
| 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: ${{ matrix.node }} | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Install Codex CLI | |
| run: npm install -g @openai/codex@0.145.0 | |
| - name: Check release versions | |
| run: npm run check-version | |
| - name: Validate Codex marketplace | |
| if: matrix.node == '22' | |
| env: | |
| CODEX_HOME: ${{ runner.temp }}/codex-home | |
| run: | | |
| mkdir -p "$CODEX_HOME" | |
| codex plugin marketplace add . --json | |
| codex plugin add cc-plugin-codex@cc-plugin-codex --json | |
| - name: Run test suite | |
| run: npm test |