Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 0 additions & 88 deletions .github/ISSUE_TEMPLATE/agent_task.yml

This file was deleted.

145 changes: 0 additions & 145 deletions .github/workflows/agent-task-queue.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: BrowserStack E2E
name: Chromatic Playwright

on:
push:
Expand All @@ -11,27 +11,26 @@ permissions:
contents: read

jobs:
browserstack-e2e:
name: BrowserStack E2E
chromatic-playwright:
name: Chromatic Playwright
runs-on: ubuntu-latest
env:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
E2E_BASE_URL: http://bs-local.com:5173
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
E2E_BASE_URL: http://127.0.0.1:5173
steps:
- uses: actions/checkout@v6

- name: Set up Node
uses: actions/setup-node@v6
with:
node-version: '20'
node-version: "20"
cache: npm
cache-dependency-path: apps/web/package-lock.json

- name: Validate BrowserStack credentials
- name: Validate Chromatic token
run: |
if [ -z "${BROWSERSTACK_USERNAME}" ] || [ -z "${BROWSERSTACK_ACCESS_KEY}" ]; then
echo "Missing BrowserStack credentials" >&2
if [ -z "${CHROMATIC_PROJECT_TOKEN}" ]; then
echo "Missing CHROMATIC_PROJECT_TOKEN" >&2
exit 1
fi

Expand Down Expand Up @@ -59,15 +58,20 @@ jobs:
echo "web failed to start" >&2
exit 1

- name: Run BrowserStack matrix tests
- name: Capture Chromatic snapshots
run: |
cd apps/web
npx browserstack-node-sdk playwright test e2e/browserstack-core.spec.ts --config=playwright.config.ts --workers=1
npm run e2e:chromatic

- name: Upload Chromatic archive
run: |
cd apps/web
npx chromatic --playwright --project-token="${CHROMATIC_PROJECT_TOKEN}"

- name: Logs on failure
if: failure()
run: docker compose -f infra/docker-compose.yml logs --no-color --tail=200 || true

- name: Teardown
if: always()
run: timeout 180 docker compose -f infra/docker-compose.yml down -v || true
run: docker compose -f infra/docker-compose.yml down -v || true
Loading
Loading