Run Playwright container action
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