@@ -272,7 +272,16 @@ jobs:
272272 with :
273273 version : ${{ needs.get-playwright-version.outputs.version }}
274274
275- regenerate-snapshots :
275+ should-regenerate-snapshots :
276+ env :
277+ ARIA_ANGULAR : ${{ needs.test-showcase-angular.outputs.aria-snapshots-changed }}
278+ VISUAL_ANGULAR : ${{ needs.test-showcase-angular.outputs.visual-snapshots-changed }}
279+ ARIA_REACT : ${{ needs.test-showcase-react.outputs.aria-snapshots-changed }}
280+ VISUAL_REACT : ${{ needs.test-showcase-react.outputs.visual-snapshots-changed }}
281+ ARIA_VUE : ${{ needs.test-showcase-vue.outputs.aria-snapshots-changed }}
282+ VISUAL_VUE : ${{ needs.test-showcase-vue.outputs.visual-snapshots-changed }}
283+ ARIA_STENCIL : ${{ needs.test-showcase-stencil.outputs.aria-snapshots-changed }}
284+ VISUAL_STENCIL : ${{ needs.test-showcase-stencil.outputs.visual-snapshots-changed }}
276285 if : |
277286 !cancelled() && (
278287 needs.test-showcase-angular.result == 'failure' ||
@@ -283,19 +292,41 @@ jobs:
283292 needs.test-showcase-react.outputs.aria-snapshots-changed == 'true' ||
284293 needs.test-showcase-react.outputs.visual-snapshots-changed == 'true' ||
285294 needs.test-showcase-vue.outputs.aria-snapshots-changed == 'true' ||
286- needs.test-showcase-vue.outputs.visual-snapshots-changed == 'true'
295+ needs.test-showcase-vue.outputs.visual-snapshots-changed == 'true' ||
296+ needs.test-showcase-stencil.outputs.aria-snapshots-changed == 'true' ||
297+ needs.test-showcase-stencil.outputs.visual-snapshots-changed == 'true'
287298 )
288- uses : ./.github/workflows/02-e2e-regenerate.yml
289- with :
290- version : ${{ needs.get-playwright-version.outputs.version }}
291- type : showcases
292299 needs :
293300 [
294301 test-showcase-angular,
295302 test-showcase-react,
296303 test-showcase-vue,
297- get-playwright-version
304+ test-showcase-stencil
298305 ]
306+ runs-on : ubuntu-24.04
307+ steps :
308+ - name : " Fail if actor is a bot and regeneration is triggered"
309+ run : |
310+ if [[ "${{ github.actor }}" == *"[bot]"* ]]; then
311+ echo "The snapshots between frameworks are different." >> $GITHUB_STEP_SUMMARY
312+ echo "| Framework | Aria Snapshots Changed | Visual Snapshots Changed |" >> $GITHUB_STEP_SUMMARY
313+ echo "|-----------|------------------------|--------------------------|" >> $GITHUB_STEP_SUMMARY
314+ echo "| Angular | "$ARIA_ANGULAR" | "$VISUAL_ANGULAR" |" >> $GITHUB_STEP_SUMMARY
315+ echo "| React | "$ARIA_REACT" | "$VISUAL_REACT" |" >> $GITHUB_STEP_SUMMARY
316+ echo "| Vue | "$ARIA_VUE" | "$VISUAL_VUE" |" >> $GITHUB_STEP_SUMMARY
317+ echo "| Stencil | "$ARIA_STENCIL" | "$VISUAL_STENCIL" |" >> $GITHUB_STEP_SUMMARY
318+ exit 1
319+ fi
320+ shell : bash
321+
322+ regenerate-snapshots :
323+ if : |
324+ !cancelled() && needs.should-regenerate-snapshots.result == 'success'
325+ uses : ./.github/workflows/02-e2e-regenerate.yml
326+ with :
327+ version : ${{ needs.get-playwright-version.outputs.version }}
328+ type : showcases
329+ needs : [should-regenerate-snapshots, get-playwright-version]
299330
300331 commit-regenerated-snapshots :
301332 uses : ./.github/workflows/02-e2e-regenerated-snapshots-commit.yml
0 commit comments