Skip to content
Merged
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
dist
artifacts
test-results
.git
67 changes: 63 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v7
with:
node-version: "lts/*"
node-version: "24"
cache: npm

- name: Install dependencies
Expand All @@ -56,7 +56,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v7
with:
node-version: "lts/*"
node-version: "24"
cache: npm

- name: Install dependencies
Expand All @@ -68,5 +68,64 @@ jobs:
- name: Build
run: npm run build

- name: Browser product tests
run: npx playwright test tests/browser/auth.spec.ts tests/browser/product-flows.spec.ts
- name: Standard browser scenarios
run: npm run test:scenarios

- name: Upload browser evidence
if: always()
uses: actions/upload-artifact@v7
with:
name: browser-scenario-evidence
if-no-files-found: ignore
retention-days: 14
path: |
playwright-report
test-results

findings:
name: Published-package findings
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
continue-on-error: true
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: "24"
cache: npm
- run: npm ci
- run: npx playwright install --with-deps chromium
- run: npm run build
- run: npm run test:findings
- if: always()
uses: actions/upload-artifact@v7
with:
name: published-package-findings
if-no-files-found: ignore
retention-days: 14
path: artifacts/findings-*

visual:
name: Canonical visual census
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v7
- name: Run pinned canonical image
run: docker build -f Dockerfile.visual -t destroyer-visual . && docker run --name destroyer-visual-run destroyer-visual
- name: Copy visual evidence
if: always()
run: |
docker cp destroyer-visual-run:/workspace/artifacts ./artifacts || true
docker cp destroyer-visual-run:/workspace/test-results ./test-results || true
- name: Upload visual evidence
if: always()
uses: actions/upload-artifact@v7
with:
name: visual-census-evidence
if-no-files-found: ignore
retention-days: 14
path: |
artifacts/visual-report
test-results
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ dist-types/
coverage/
.data/
test-results/
artifacts/
tests/visual/*-snapshots/*-darwin.png
20 changes: 20 additions & 0 deletions Dockerfile.visual
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM node:24-bookworm-slim@sha256:a9f5f7c91a432850b2a8a7797adf5eadb6c733ceed61167806cee7ea7fbc29df

ENV CI=1 \
TZ=UTC \
LANG=en_US.UTF-8 \
LC_ALL=en_US.UTF-8 \
DESTROYER_CANONICAL_VISUAL=1

WORKDIR /workspace
COPY package.json package-lock.json ./
RUN apt-get update \
&& apt-get install -y --no-install-recommends python3 make g++ locales \
&& sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen \
&& locale-gen \
&& npm ci \
&& npx playwright install --with-deps chromium \
&& rm -rf /var/lib/apt/lists/*
COPY . .
RUN npm run build
CMD ["npm", "run", "test:visual"]
Loading