fix(prompts): expand prompt editor workspace #1370
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: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| quality: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| working-directory: web | |
| run: bun install | |
| - name: Dead code guard (unused locals/params) | |
| working-directory: web | |
| run: bun run deadcode:check | |
| - name: DRY guard (duplicate code threshold) | |
| working-directory: web | |
| run: bun run dry:check | |
| test: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| working-directory: web | |
| run: bun install | |
| - name: Typecheck | |
| working-directory: web | |
| run: bun run typecheck | |
| - name: Codex protocol contract (offline) | |
| working-directory: web | |
| run: bun run test:codex-contract | |
| - name: Run tests | |
| working-directory: web | |
| run: bun run test | |
| - name: Build frontend | |
| working-directory: web | |
| run: bun run build | |
| env: | |
| VITE_POSTHOG_KEY: ${{ secrets.VITE_POSTHOG_KEY }} | |
| VITE_POSTHOG_HOST: ${{ vars.VITE_POSTHOG_HOST || 'https://us.i.posthog.com' }} | |
| platform: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| working-directory: platform | |
| run: bun install | |
| - name: Typecheck | |
| working-directory: platform | |
| run: bun run typecheck | |
| - name: Run tests | |
| working-directory: platform | |
| run: bun run test | |
| - name: Build | |
| working-directory: platform | |
| run: bun run build |