Skip to content

Merge pull request #749 from alphagov/BAU-AlanM-content-changes #81

Merge pull request #749 from alphagov/BAU-AlanM-content-changes

Merge pull request #749 from alphagov/BAU-AlanM-content-changes #81

name: Visual regression
on:
pull_request:
branches:
- 'main'
paths:
- 'source/**'
push:
branches:
- 'main'
paths:
- 'source/**'
workflow_dispatch:
permissions:
contents: read
jobs:
visual-regression:
name: Start visual regression build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
- name: Setup Ruby
uses: ruby/setup-ruby@7d546f4868fb108ed378764d873683f920672ae2
with:
ruby-version: '.ruby-version'
bundler-cache: true
- name: Setup Node
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install and Build
run: |
npm ci
bundle exec middleman build
- name: Run Percy tasks
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
run: npm run percy