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
755 changes: 37 additions & 718 deletions .github/workflows/ci.yml

Large diffs are not rendered by default.

51 changes: 51 additions & 0 deletions .github/workflows/reporter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Reporter Visual Tests

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
visual:
name: Visual Tests
runs-on: blacksmith-4vcpu-ubuntu-2404
timeout-minutes: 8

steps:
- uses: actions/checkout@v4

- name: Use Node.js 22
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Get installed Playwright version
id: playwright-version
run: echo "version=$(npx playwright --version | grep -oE '[0-9]+\.[0-9]+\.[0-9]+')" >> $GITHUB_OUTPUT

- name: Cache Playwright browsers
uses: actions/cache@v4
id: playwright-cache
with:
path: ~/.cache/ms-playwright
key: playwright-browsers-${{ steps.playwright-version.outputs.version }}-firefox

- name: Install Playwright browsers
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: npx playwright install firefox --with-deps

- name: Run reporter visual tests
run: npm run test:reporter:visual
env:
CI: true
VIZZLY_TOKEN: ${{ secrets.VIZZLY_REPORTER_TOKEN }}
VIZZLY_COMMIT_MESSAGE: ${{ github.event.pull_request.head.commit.message || github.event.head_commit.message }}
VIZZLY_COMMIT_SHA: ${{ github.event.pull_request.head.sha || github.event.head_commit.id }}
Loading
Loading