v5.5.0
This minor release adds a new CI script: happo-ci-github-actions
. This script will simplify setting up a Happo test suite when using GitHub Actions. Here's how to use it:
First, add a happo-ci-github-actions
entry in your package.json
:
{
"scripts": {
"happo-ci-github-actions": "happo-ci-github-actions"
}
}
Then modify your .github
workflow config to use the new script (this is an example of a full workflow file, you'll have to adjust to match your setup):
name: Happo CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- name: install modules
run: yarn install
- name: happo
run: yarn happo-ci-github-actions
env:
HAPPO_API_KEY: ${{ secrets.HAPPO_API_KEY }}
HAPPO_API_SECRET: ${{ secrets.HAPPO_API_SECRET }}