-
Notifications
You must be signed in to change notification settings - Fork 5.6k
84 lines (73 loc) · 2.89 KB
/
Copy pathapp-aesthetic-audit.yml
File metadata and controls
84 lines (73 loc) · 2.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: App Aesthetic Audit
# Walk EVERY app view (built-in tabs + plugin view bundles) at desktop + mobile
# against the deterministic keyless stub stack, capture rest + hover screenshots,
# run the blank/one-color analyzer + brand-color (no-blue / orange-hover) checks,
# and write per-view verdicts + a contact sheet + report.json.
#
# This is the agent app's equivalent of cloud-frontend's `audit:cloud`. Until
# this workflow existed the audit ran in NO CI lane (honor-system per the PR
# template, #9304). It hard-fails on any uncaught page error (a real crash) and
# uploads all artifacts. To additionally gate on `broken` verdicts (console
# errors / blank renders / empty views), capture the current set into
# AESTHETIC_VERDICT_DEBT (in all-views-aesthetic-audit.spec.ts) from this
# workflow's first clean run, then set ELIZA_AUDIT_APP_STRICT=1 below.
on:
pull_request:
branches: [main, develop]
paths:
- "packages/app/**"
- "packages/ui/**"
- ".github/workflows/app-aesthetic-audit.yml"
workflow_dispatch:
inputs:
strict:
description: "Fail on non-exempt broken verdicts (ELIZA_AUDIT_APP_STRICT)"
type: boolean
default: false
concurrency:
group: app-aesthetic-audit-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
env:
BUN_VERSION: "canary"
NODE_VERSION: "24.15.0"
jobs:
aesthetic-audit:
runs-on: ubuntu-24.04
timeout-minutes: 45
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
TURBO_CACHE: remote:rw
# Keyless: the ui-smoke stub is forced when CI=true (shouldForceStubStack).
ELIZA_UI_SMOKE_FORCE_STUB: "1"
ELIZA_AUDIT_APP_STRICT: ${{ github.event.inputs.strict == 'true' && '1' || '0' }}
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
with:
submodules: false
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
with:
node-version: ${{ env.NODE_VERSION }}
- name: Setup workspace dependencies
uses: ./.github/actions/setup-bun-workspace
with:
bun-version: ${{ env.BUN_VERSION }}
install-command: bun install
install-native-deps: "false"
skip-avatar-clone: "true"
no-vision-deps: "true"
- name: Install Playwright Chromium
run: bunx playwright install --with-deps chromium
- name: Run all-views aesthetic audit
run: bun run --cwd packages/app audit:app
- name: Upload aesthetic-audit artifacts
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
with:
name: app-aesthetic-audit-output
path: packages/app/aesthetic-audit-output
retention-days: 14
if-no-files-found: ignore