Skip to content

A GitHub Action / Docker image for Puppeteer, the Headless Chrome Node API

License

Notifications You must be signed in to change notification settings

Quo0/puppeteer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ianwalter/puppeteer

A GitHub Action / Docker image for Puppeteer, the Headless Chrome Node API

About

Forked from buildkite/puppeteer and based on this troubleshooting guide.

Usage

Puppeteer will need to be launched with:

browser.launch({ executablePath: 'google-chrome-stable', args: ["--no-sandbox"]})

This is done by default in @ianwalter/bff-puppeteer.

As a GitHub Action:

name: CI
on:
  push:
    branches:
      - master
  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/puppeteer@12728ddef82390d1ecd4732fb543f62177392fbb
        with:
          args: yarn
      - name: Test
        uses: ianwalter/puppeteer@12728ddef82390d1ecd4732fb543f62177392fbb
        with:
          args: yarn test

As a Docker container:

docker pull ianwalter/puppeteer:3.0.0

Related

License

Apache 2.0 with Commons Clause - See LICENSE

 

Created by Ian Walter

About

A GitHub Action / Docker image for Puppeteer, the Headless Chrome Node API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 85.2%
  • JavaScript 14.8%