https://github.com/phi-ag/run-playwright
Run Playwright container action
https://github.com/phi-ag/run-playwright
action playwright
Last synced: 6 days ago
JSON representation
Run Playwright container action
- Host: GitHub
- URL: https://github.com/phi-ag/run-playwright
- Owner: phi-ag
- License: mit
- Created: 2024-10-01T10:20:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2026-02-26T12:10:11.000Z (15 days ago)
- Last Synced: 2026-02-26T18:27:25.103Z (15 days ago)
- Topics: action, playwright
- Homepage:
- Size: 32.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Run Playwright
[](https://github.com/phi-ag/run-playwright/releases)
[](https://github.com/phi-ag/run-playwright/actions/workflows/check.yml)
Run [Playwright](https://github.com/microsoft/playwright) container action
## Usage
```yaml
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](https://mcr.microsoft.com/en-us/product/playwright/tags)
```yaml
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](https://github.com/microsoft/playwright-github-action) or use something like this
```yaml
steps:
- name: Run Playwright
uses: docker://mcr.microsoft.com/playwright:v1.47.2
with:
args: ./e2e/run.sh
```