-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6d0e7e9
commit d67eae5
Showing
1 changed file
with
20 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ on: | |
- main | ||
|
||
jobs: | ||
install_node: | ||
run_backstop: | ||
name: Setup BackstopJS | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -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 | ||
|