Skip to content

Playwright tests

Playwright tests #13

Workflow file for this run

name: test
on: push
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5
# Container to avoid slowly installing playwright deps each time
# https://playwright.dev/docs/ci#via-containers
container:
image: mcr.microsoft.com/playwright:v1.50.1-noble
options: --user 1001
strategy:
matrix:
node-version: [22.x]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Cache node_modules
id: cache-node-modules
uses: actions/cache@v3
with:
key: ${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
path: node_modules
- name: Install dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm ci
#- name: Install Playwright browsers
# run: npx playwright install --with-deps
timeout-minutes: 2
- name: Run Playwright tests
run: npm run test-playwright