Skip to content

🤖 feat: Agent Plugins install/update UX (managed installs, v1) #1858

🤖 feat: Agent Plugins install/update UX (managed installs, v1)

🤖 feat: Agent Plugins install/update UX (managed installs, v1) #1858

Workflow file for this run

name: Pixel
on:
push:
branches:
- main
pull_request:
branches: ["**"]
workflow_dispatch:
jobs:
pixel:
name: Visual Regression Testing
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-latest' }}
# Skip for forked PRs since they don't have access to secrets
if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request'
env:
PIXEL_KEY: ${{ secrets.PIXEL_KEY }}
steps:
- name: Checkout code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
- uses: ./.github/actions/setup-xum
- uses: ./.github/actions/setup-playwright
- name: Generate version file
run: ./scripts/generate-version.sh
- name: Mock version for stable visual testing
run: cp src/browser/stories/mocks/version.ts src/version.ts
- name: Snapshot
if: env.PIXEL_KEY != ''
run: bun x pixel-storybook
env:
# On pull_request events GITHUB_SHA is the merge commit; report the
# head SHA so the Pixel commit status lands on the PR.
PIXEL_COMMIT: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
# Auto-approve main builds so they become baselines without review.
PIXEL_AUTO_REVIEW: ${{ github.event_name == 'push' && 'true' || 'false' }}
- name: Notice when Pixel is not configured
if: env.PIXEL_KEY == ''
run: echo "PIXEL_KEY secret not configured; skipping Pixel snapshot upload."