Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```