Skip to content
play

GitHub Action

phi.ag - Run Playwright

v1.1.4 Latest version

phi.ag - Run Playwright

play

phi.ag - Run Playwright

Run Playwright container action

Installation

Copy and paste the following snippet into your .yml file.

              

- name: phi.ag - Run Playwright

uses: phi-ag/[email protected]

Learn more about this action in phi-ag/run-playwright

Choose a version

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