Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/phi-ag/run-playwright
Run Playwright container action
https://github.com/phi-ag/run-playwright
action playwright
Last synced: about 1 month 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 (4 months ago)
- Default Branch: main
- Last Pushed: 2024-10-23T19:18:21.000Z (3 months ago)
- Last Synced: 2024-10-24T05:50:09.693Z (3 months ago)
- Topics: action, playwright
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Run Playwright
[![Release](https://img.shields.io/github/v/release/phi-ag/run-playwright?style=for-the-badge)](https://github.com/phi-ag/run-playwright/releases)
[![Check](https://img.shields.io/github/actions/workflow/status/phi-ag/run-playwright/check.yml?style=for-the-badge&label=check)](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:
run: |
corepack enable
corepack prepare --activate
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.47.2
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
```