Skip to content

Playwright Tests Docker #9

Playwright Tests Docker

Playwright Tests Docker #9

name: Playwright Tests Docker
on:
push:
branches: ['main']
paths:
- 'src/playwright.js'
workflow_dispatch:
logLevel:
description: 'Log level'
required: true
default: 'warning'
type: choice
options:
- warning
jobs:
playwright:
name: 'Playwright Tests Docker'
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.48.1-noble
options: --user 1001
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: init
run: npm init -y
- name: Install
run: npm install
- name: Install dependencies
run: npm ci
- name: Install test
run: npm install @playwright/test
- name: Install playwright
run: npx playwright install
- name: Run your tests
run: npx playwright test --repeat-each=50