Skip to content

Add Playwright Testing Framework #1

Add Playwright Testing Framework

Add Playwright Testing Framework #1

Workflow file for this run

name: Playwright Tests
on:
push:
branches:
- develop
- 'project/playwright'
pull_request:
branches:
- develop
- 'project/playwright'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
test-e2e:
name: Playwright e2e test
timeout-minutes: 60
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/tests-e2e
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm install -g yarn && yarn
- name: Install Playwright Browsers
run: yarn playwright install --with-deps
- name: Run Playwright tests
run: yarn playwright test
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
- name: Upload Playwright Report to GitHub Pages
if: success()
uses: actions/deploy-pages@v4