Skip to content

phi-ag/run-playwright

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Run Playwright

Release Check

Run Playwright container action

Usage

steps:
  - name: Run Playwright
    uses: phi-ag/run-playwright@v1
    env:
      BASE_URL: https://example.com
    with:
      run: |
        corepack enable
        corepack prepare --activate
        pnpm install --frozen-lockfile
        pnpm test:e2e

Use a specific version, see available image tags

steps:
  - name: Run Playwright
    uses: phi-ag/run-playwright@v1
    env:
      BASE_URL: https://example.com
    with:
      version: v1.47.2
      run: |
        echo hello world

If this action doesn't work for you, take a look at the official recommendation or use something like this

steps:
  - name: Run Playwright
    uses: docker://mcr.microsoft.com/playwright:v1.47.2
    with:
      args: ./e2e/run.sh