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:
      options: -v ${STORE_PATH}:${STORE_PATH}
      run: |
        corepack enable
        corepack prepare --activate

        pnpm config set store-dir ${STORE_PATH}
        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.55.0-noble@sha256:b27e719ecbfef153e13fd24e8341736733bf2658b229677eb21ff57ff5d7fb29
      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

About

Run Playwright container action

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •