Skip to content

Commit 0a2b258

Browse files
authored
fix(tests): preventing slipthrougs to main (#4906)
1 parent ca0393e commit 0a2b258

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/02-e2e-showcases.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,14 @@ jobs:
7474
name: db-ux-${{ inputs.showcase }}
7575
path: build-showcases/${{ inputs.showcase }}
7676

77-
# We test everything for patternhub and main branch
77+
# We test everything for patternhub and main branch or in case of any aria-snapshot changes
7878
- name: 👩‍🔬 Test showcase with Playwright 🎭
7979
shell: bash
80-
if: github.event.pull_request == null
80+
if: |
81+
needs.test-showcase-react.outputs.aria-snapshots-changed-to-main == 'true' ||
82+
needs.test-showcase-angular.outputs.aria-snapshots-changed-to-main == 'true' ||
83+
needs.test-showcase-vue.outputs.aria-snapshots-changed-to-main == 'true' ||
84+
github.event.pull_request == null
8185
env:
8286
NEXT_PUBLIC_BASE_PATH: ${{ inputs.path }}
8387
run: |

0 commit comments

Comments
 (0)