Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ianwalter/playwright-container
A GitHub Action / Docker image for Playwright, the browser automation library
https://github.com/ianwalter/playwright-container
docker docker-image github-actions playwright
Last synced: 1 day ago
JSON representation
A GitHub Action / Docker image for Playwright, the browser automation library
- Host: GitHub
- URL: https://github.com/ianwalter/playwright-container
- Owner: ianwalter
- License: other
- Created: 2020-07-22T19:30:20.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-10-17T17:16:17.000Z (about 1 year ago)
- Last Synced: 2024-11-02T01:23:07.777Z (8 days ago)
- Topics: docker, docker-image, github-actions, playwright
- Language: Dockerfile
- Homepage:
- Size: 435 KB
- Stars: 37
- Watchers: 1
- Forks: 7
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# ianwalter/playwright-container
> A GitHub Action / Docker image for Playwright, the browser automation library## About
Based on the [official Playwright Dockerfile][playwrightDockerfileUrl] but this
image uses the current Node.js release instead of LTS and Debian instead of
Ubuntu.## Usage
Playwright will need to be launched with:
```js
playwright.chromium.launch({ args: ['--no-sandbox'] })
```As a [GitHub Action][actionsUrl]:
```yml
name: CI
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install
# NOTE: this pins the action to a specific commit sha for security
# reasons but you can also use a version tag if desired. For example:
# ianwalter/[email protected]
uses: ianwalter/playwright-container@43940dfa7d309fe3569b9df407ae9e84dcbf2e7f
with:
args: npm ci
- name: Test
uses: ianwalter/playwright-container@43940dfa7d309fe3569b9df407ae9e84dcbf2e7f
with:
args: npm test
```As a [Docker container][dockerUrl]:
```console
docker pull ianwalter/playwright:v3.0.0
```## Related
* [`@ianwalter/bff`][bffUrl] - Your friendly test framework
## License
Apache 2.0 with Commons Clause - See [LICENSE][licenseUrl]
Created by [Ian Walter](https://ianwalter.dev)
[playwrightDockerfileUrl]: https://github.com/microsoft/playwright/blob/master/docs/docker/Dockerfile.bionic
[actionsUrl]: https://github.com/features/actions
[dockerUrl]: https://hub.docker.com/r/ianwalter/playwright
[bffUrl]: https://github.com/ianwalter/bff
[puppeteerUrl]: https://github.com/ianwalter/puppeteer-container
[licenseUrl]: https://github.com/ianwalter/playwright-container/blob/master/LICENSE