Skip to content

Playwright Tests Docker #14

Playwright Tests Docker

Playwright Tests Docker #14

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
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Docker
run: docker pull mcr.microsoft.com/playwright:v1.48.1-noble
- name: Run Playwright tests
run: docker run --rm --ipc=host mcr.microsoft.com/playwright:v1.48.1-noble /bin/bash
- name: Run your tests
run: npx playwright test