Skip to content

Commit

Permalink
go down to one job
Browse files Browse the repository at this point in the history
  • Loading branch information
miriamgoldman committed Jul 31, 2024
1 parent 6d0e7e9 commit d67eae5
Showing 1 changed file with 20 additions and 26 deletions.
46 changes: 20 additions & 26 deletions .github/workflows/backstop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- main

jobs:
install_node:
run_backstop:
name: Setup BackstopJS
runs-on: ubuntu-latest
steps:
Expand All @@ -19,38 +19,32 @@ jobs:

- name: Install Backstop
run: npm install --force -g backstopjs


run_backstopjs:
name: Run BackstopJS
runs-on: ubuntu-latest
needs: [ install_node ]
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Create reference screenshot(s)
working-directory: backstop
run: backstop reference
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Run Backstop
working-directory: backstop
run: backstop test
- name: Create reference screenshot(s)
working-directory: backstop
run: backstop reference

- name: create a folder
run: mkdir backstop_data
- 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: 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:
- name: Download a Build Artifact
uses: actions/[email protected]
with:
# Artifact name
name: Download report
# Destination path
Expand Down

0 comments on commit d67eae5

Please sign in to comment.