This project provides Docker images for running Playwright tests. The images are built and pushed to Docker Hub automatically via GitHub Actions.
linux/amd64, linux/arm64).You can use the Docker images in your CI/CD pipeline to run Playwright tests. Here's an example of how to use the image in a GitHub Actions workflow:
jobs:
test:
runs-on: ubuntu-latest
container:
image: thanatosdi/playwright-runner:latest
steps:
- uses: actions/checkout@v3
- name: Run Playwright tests
run: npx playwright test
You can also use a specific browser version by specifying the browser name in the image tag:
jobs:
test:
runs-on: ubuntu-latest
container:
image: thanatosdi/playwright-runner:latest-chromium
steps:
- uses: actions/checkout@v3
- name: Run Playwright tests
run: npx playwright test --browser chromium
The project uses GitHub Actions to build and push the Docker images to Docker Hub. The workflow is defined in the .github/workflows/build.yaml file. The workflow is triggered manually and builds images for all browsers and a combined image with all browsers.
Contributions are welcome! If you have any ideas or suggestions, please open an issue or submit a pull request.
這個專案提供用於執行 Playwright 測試的 Docker 映像檔。這些映像檔會透過 GitHub Actions 自動建置並推送到 Docker Hub。
linux/amd64, linux/arm64)。您可以在您的 CI/CD 流程中使用這些 Docker 映像檔來執行 Playwright 測試。這是在 GitHub Actions 工作流程中使用此映像檔的範例:
jobs:
test:
runs-on: ubuntu-latest
container:
image: thanatosdi/playwright-runner:latest
steps:
- uses: actions/checkout@v3
- name: Run Playwright tests
run: npx playwright test
您也可以透過在映像檔標籤中指定瀏覽器名稱來使用特定的瀏覽器版本:
jobs:
test:
runs-on: ubuntu-latest
container:
image: thanatosdi/playwright-runner:latest-chromium
steps:
- uses: actions/checkout@v3
- name: Run Playwright tests
run: npx playwright test --browser chromium
此專案使用 GitHub Actions 來建置 Docker 映像檔並將其推送到 Docker Hub。工作流程定義在 .github/workflows/build.yaml 檔案中。此工作流程是手動觸發的,會為所有瀏覽器建置映像檔,以及一個包含所有瀏覽器的組合映像檔。
歡迎貢獻!如果您有任何想法或建議,請提出 issue 或提交 pull request。
Content type
Image
Digest
sha256:c89d93460…
Size
922.6 MB
Last updated
3 days ago
docker pull thanatosdi/playwright-runner