Skip to content

Commit

Permalink
Add testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ronan committed Feb 1, 2025
1 parent 0a1d7d8 commit 95ec169
Show file tree
Hide file tree
Showing 13 changed files with 11 additions and 15 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/capture.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Capture Theme Changes
run-name: Capturing visual reference 👓
on: []
on: [push]
permissions:
contents: write
jobs:
Expand All @@ -10,13 +10,7 @@ jobs:
- uses: actions/checkout@v4
- name: Execute backstop reference
run: |
docker compose run backstop reference --config=/config.js
- name: Commit results
run: |
if [[ `git status --porcelain` ]]; then
git config --global user.name '${{ github.actor }}'
git config --global user.email '${{ github.actor }}@users.noreply.github.com'
git add --all .ops/output/vrt/*
git commit -am "Automated reference image capture by Github Actions"
git push
fi
docker compose exec backstop reference --config=/config.js
- uses: EndBug/add-and-commit@v9
with:
add: .ops/output/vrt
1 change: 1 addition & 0 deletions .ops/backstop.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ module.exports = {
.split(/\n/)
.forEach((line) => {
parts = line.split(',').map(str => str.trim());
console.log(line);
if (!parts || parts[0]?.startsWith('#') || !parts?.[1])
return;

Expand Down
Binary file added .ops/output/vrt/approved/Colors--desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .ops/output/vrt/approved/Colors--mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .ops/output/vrt/approved/Header_Menus--desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .ops/output/vrt/approved/Header_Menus--mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .ops/output/vrt/approved/Home--desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .ops/output/vrt/approved/Home--mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .ops/output/vrt/approved/Long_Menus--desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .ops/output/vrt/approved/Long_Menus--mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .ops/output/vrt/approved/Menus--desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .ops/output/vrt/approved/Menus--mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 5 additions & 4 deletions .ops/urls.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Title Path
Header Menus, /, clickMenu.js
Home, /
Menus, /menus
Long Menus, /menus/long
Colors, /decanter_help/styleguide/colors
Header Menus, /, clickMenu.js
Home, /
Menus, /menus
Long Menus, /menus/long

0 comments on commit 95ec169

Please sign in to comment.