Skip to content

Image regression tests #15

Image regression tests

Image regression tests #15

Workflow file for this run

name: Playwright Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: "Playwright Tests - ${{ matrix.project }} (${{ matrix.shardIndex }}/${{ matrix.shardTotal }})"
strategy:
fail-fast: false
matrix:
# project: [chromium, firefox, webkit]
# only firefox is working reliably
project: [firefox]
shardIndex: [1, 2, 3, 4]
shardTotal: [4]
timeout-minutes: 60
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./testing
steps:
- uses: actions/cache@v2
id: playwright-cache
with:
path: |
~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ hashFiles('**/package-lock.json') }}
- uses: actions/checkout@v4
with:
lfs: "true"
- uses: actions/setup-node@v4
with:
node-version: "20"
- run: npm ci
- run: npx playwright install --with-deps
if: steps.playwright-cache.outputs.cache-hit != 'true'
- run: npx playwright install-deps
if: steps.playwright-cache.outputs.cache-hit == 'true'
- run: npx elm make TestApp.elm --output=TestApp.html
- uses: coactions/setup-xvfb@6b00cf1889f4e1d5a48635647013c0508128ee1a # node20
with:
run: npx playwright test --project=${{ matrix.project }} --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
working-directory: ./testing
- uses: actions/upload-artifact@v4
if: failure()
with:
name: playwright-report-${{ matrix.project }}-${{ matrix.shardIndex }}
path: testing/playwright-report/
retention-days: 30