Skip to content

Setting up Backstop #11

Setting up Backstop

Setting up Backstop #11

Workflow file for this run

name: VRT with Backstop JS
on:
pull_request:
types:
- opened
- synchronize
branches:
- main
defaults:
run:
working-directory: ./wp-github-actions-intermediate
jobs:
install_node:
name: Run BackstopJS
runs-on: ubuntu-latest
steps:
- name: Install Node 20
uses: actions/setup-node@v4
with:
node-version: 20.9
- name: Install Backstop
run: npm install --force -g backstopjs
- name: Create reference screenshot(s)
run: backstop reference
- name: Run Backstop
run: backstop test