Skip to content

Merge pull request #690 from masonmcelvain/renovate/major-eslint-mono… #3056

Merge pull request #690 from masonmcelvain/renovate/major-eslint-mono…

Merge pull request #690 from masonmcelvain/renovate/major-eslint-mono… #3056

Workflow file for this run

name: E2E Tests
on:
- push
jobs:
playwright:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 19
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Install Playwright browsers
run: pnpm playwright install chrome chromium --with-deps
- name: Build for Chrome
run: pnpm build:chrome
- name: Run Playwright tests
run: xvfb-run -- pnpm playwright test
- name: Upload results
uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
if-no-files-found: error