Skip to content

Instantly share code, notes, and snippets.

@abahgat
Created August 10, 2019 16:17
Show Gist options
  • Save abahgat/912e04bed5f273cde8cacc0367b2de05 to your computer and use it in GitHub Desktop.
Save abahgat/912e04bed5f273cde8cacc0367b2de05 to your computer and use it in GitHub Desktop.
Basic CircleCI config for building a site with Hugo, running html-proofer and testing the results.
version: 2.1
orbs:
hugo: circleci/[email protected]
jobs:
snapshot:
docker:
- image: buildkite/puppeteer:v1.15.0
steps:
- attach_workspace:
at: .
- run: npm install percy
- run: PERCY_TOKEN=$PERCY_TOKEN npx percy snapshot ./public
workflows:
main:
jobs:
- hugo/build:
version: "0.55.6"
html-proofer: true
- snapshot:
requires:
- hugo/build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment