Docker image with Playwright and Bun runtime for E2E testing.
- Playwright 1.57.0 with all browsers pre-installed
- Bun runtime (latest version)
- Browsers included:
- Chromium
- Firefox
- WebKit
- Google Chrome
docker pull ghcr.io/mosadif/playwright-bun:latestdocker run --rm -v $(pwd):/app ghcr.io/mosadif/playwright-bun:latest \
bash -c "bun install && bunx playwright test"# Chromium
docker run --rm -v $(pwd):/app ghcr.io/mosadif/playwright-bun:latest \
bash -c "bun install && bunx playwright test --project=chromium"
# Firefox
docker run --rm -v $(pwd):/app ghcr.io/mosadif/playwright-bun:latest \
bash -c "bun install && bunx playwright test --project=firefox"
# WebKit
docker run --rm -v $(pwd):/app ghcr.io/mosadif/playwright-bun:latest \
bash -c "bun install && bunx playwright test --project=webkit"docker run --rm -it -v $(pwd):/app ghcr.io/mosadif/playwright-bun:latest bashdocker run --rm -v $(pwd):/app --env-file .env ghcr.io/mosadif/playwright-bun:latest \
bash -c "bun install && bunx playwright test"docker run --rm \
-v $(pwd):/app \
-v $(pwd)/playwright-report:/app/playwright-report \
-v $(pwd)/test-results:/app/test-results \
ghcr.io/mosadif/playwright-bun:latest \
bash -c "bun install && bunx playwright test"When a new git tag is pushed (e.g., v1.57.0), the following Docker tags are automatically created:
| Tag | Description | Example |
|---|---|---|
latest |
Latest stable version | ghcr.io/mosadif/playwright-bun:latest |
<version> |
Full semantic version | ghcr.io/mosadif/playwright-bun:1.57.0 |
<major>.<minor> |
Major.minor version | ghcr.io/mosadif/playwright-bun:1.57 |
docker build -t playwright-bun .This image is automatically built and published to GitHub Container Registry when a new tag is created:
git tag v1.57.0
git push origin v1.57.0The GitHub Actions workflow will:
- Build the Docker image
- Push to
ghcr.io/mosadif/playwright-bunwith tags:1.57.0(full version)1.57(major.minor)latest
MIT License - see LICENSE for details.