test(e2e): set_thinking_effort mid-task workflow (DTE addendum) #1155
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: Webview Visual Regression | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| types: [opened, reopened, ready_for_review, synchronize] | |
| paths: | |
| - "apps/vscode-e2e/package.json" | |
| - "apps/vscode-e2e/src/theme-fixtures/**" | |
| - "packages/types/src/api.ts" | |
| - "packages/types/src/vscode-extension-host.ts" | |
| - "src/core/webview/ClineProvider.ts" | |
| - "src/core/webview/webviewMessageHandler.ts" | |
| - "src/extension/api.ts" | |
| - "webview-ui/**" | |
| - "src/shared/**" | |
| - "package.json" | |
| - "pnpm-lock.yaml" | |
| - ".github/workflows/visual-regression.yml" | |
| merge_group: | |
| types: [checks_requested] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| webview-visual: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| container: | |
| image: mcr.microsoft.com/playwright:v1.60.0-noble@sha256:9bd26ad900bb5e0f4dee75839e957a89ae89c2b7ab1e76050e559790e946b948 | |
| options: --ipc=host | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| with: | |
| persist-credentials: false | |
| - name: Setup Node.js and pnpm | |
| uses: ./.github/actions/setup-node-pnpm | |
| with: | |
| install-args: "--frozen-lockfile" | |
| - name: Run webview visual tests | |
| run: pnpm --filter @roo-code/vscode-webview test:visual | |
| - name: Upload visual test coverage to Codecov | |
| if: always() | |
| uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4 | |
| with: | |
| files: webview-ui/coverage-ct/lcov.info | |
| disable_search: true | |
| flags: webview-ui-ct | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Upload visual test artifacts | |
| if: failure() | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 | |
| with: | |
| name: webview-visual-regression | |
| path: | | |
| webview-ui/playwright-report | |
| webview-ui/test-results | |
| if-no-files-found: ignore | |
| theme-fixtures: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| with: | |
| persist-credentials: false | |
| - name: Setup Node.js and pnpm | |
| uses: ./.github/actions/setup-node-pnpm | |
| with: | |
| install-args: "--frozen-lockfile" | |
| - name: Install xvfb | |
| run: sudo apt-get install -y xvfb | |
| - name: Get pinned VS Code version | |
| id: vscode-version | |
| run: | | |
| VERSION=$(node -p 'require("./apps/vscode-e2e/package.json").devDependencies["@types/vscode"]') | |
| echo "version=$VERSION" >> "$GITHUB_OUTPUT" | |
| - name: Cache pinned VS Code | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 | |
| with: | |
| path: apps/vscode-e2e/.vscode-test/ | |
| key: vscode-theme-fixtures-${{ runner.os }}-${{ steps.vscode-version.outputs.version }}-v1 | |
| - name: Test theme fixture serialization | |
| run: pnpm --filter @roo-code/vscode-e2e themes:test | |
| - name: Check generated VS Code theme fixtures | |
| run: xvfb-run -a pnpm --filter @roo-code/vscode-e2e themes:check |