Skip to content

Setting up Backstop #17

Setting up Backstop

Setting up Backstop #17

Workflow file for this run

name: VRT with Backstop JS
on:
pull_request:
types:
- opened
- synchronize
branches:
- main
jobs:
run_backstop:
name: Setup 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: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create reference screenshot(s)
working-directory: backstop
run: backstop reference
- name: Run Backstop
working-directory: backstop
run: backstop test
- name: create a folder
run: mkdir backstop_data
- name: Archive HTML Report on failure
uses: actions/upload-artifact@v1
with:
name: report
path: backstop_data/
- name: Download a Build Artifact
uses: actions/[email protected]
with:

Check failure on line 47 in .github/workflows/backstop.yml

View workflow run for this annotation

GitHub Actions / VRT with Backstop JS

Invalid workflow file

The workflow is not valid. .github/workflows/backstop.yml (Line: 47, Col: 14): Unexpected value '' .github/workflows/backstop.yml (Line: 49, Col: 9): 'name' is already defined
# Artifact name
name: Download report
# Destination path
path: backstop_data