GitHub Action
Puppeteer Headful GitHub Action
v1.0.12
Latest version
This repository contains the puppeteer Headful docker image, Container is available to GitHub Actions.
on:
pull_request:
branches:
- dev
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Build project
uses: actions/setup-node@v1
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 'true'
with:
args: install
- name: Smoke tests
uses: beemi/puppeteer-headful@master
env:
CI: 'true'
DISPLAY: :99
with:
args: npm test
Puppeteer Browser launch configuration.
browser = await puppeteer.launch({
args: ['--no-sandbox','--disable-setuid-sandbox','--font-render-hinting=none'],
executablePath: process.env.PUPPETEER_EXEC_PATH, // set by docker container
headless: false,
...
});