Skip to content

Puppeteer Headful Docker Image & GitHub Action container

Notifications You must be signed in to change notification settings

beemi/puppeteer-headful

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aimeos logo

Puppeteer Headful GitHub Action Container

This repository contains the puppeteer Headful docker image, Container is available to GitHub Actions.

Usage

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,
  ...
});

contact

beemi.raja@gmail.com