-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (48 loc) · 1.22 KB
/
backstop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: VRT with Backstop JS
on:
pull_request:
types:
- opened
- synchronize
branches:
- main
jobs:
install_node:
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
run_backstopjs:
name: Run BackstopJS
runs-on: ubuntu-latest
needs: [ install_node ]
steps:
- 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:
# Artifact name
name: Download report
# Destination path
path: backstop_data