Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/backstop-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: BackstopJS Visual Regression Tests

on:
workflow_dispatch:

jobs:
backstop-tests:
runs-on: ubuntu-latest
timeout-minutes: 60

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20
cache: yarn

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Build packages
run: lerna run build

- name: Start Storybook
run: yarn storybook -p 6006 &

- name: Wait for Storybook to be available
run: npx wait-on http://localhost:6006 --timeout 120000

- name: Run BackstopJS tests
run: yarn backstop:test
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,8 @@ coverage/
lerna-debug.log

.history/

# BackstopJS - ignore generated test files and reports
/backstop_data/bitmaps_test/
/backstop_data/html_report/
/backstop_data/ci_report/
Loading