Skip to content

Add campaign data: Journey #288

Add campaign data: Journey

Add campaign data: Journey #288

Workflow file for this run

name: Playwright Tests
on:
pull_request:
branches: [ master ]
jobs:
test:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: "24"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Cache Playwright browsers
id: playwright-cache
uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright
key: playwright-chromium-${{ hashFiles('package-lock.json') }}
- name: Install Playwright Browsers
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: npx playwright install --with-deps chromium
- name: Install Playwright system deps
if: steps.playwright-cache.outputs.cache-hit == 'true'
run: npx playwright install-deps chromium
- name: Cache build output
id: dist-cache
uses: actions/cache@v4
with:
path: dist/
key: dist-${{ hashFiles('src/**', 'public/**', 'vite.config.ts',
'tsconfig.json', 'package-lock.json') }}
- name: Build app
if: steps.dist-cache.outputs.cache-hit != 'true'
run: npm run build
- name: Run Playwright tests
run: npm run test:e2e
env:
SKIP_BUILD: "1"
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30