Skip to content

Commit

Permalink
chore(GHA): overwrite screenshots on master/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Skaiir committed Jul 25, 2023
1 parent 74c84ad commit f126415
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/VISUAL_REGRESSION.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,18 @@ jobs:
- name: Start server
run: npm run start:visual-preview
- name: Run Playwright tests
if: github.ref != 'refs/heads/develop' && github.ref != 'refs/heads/master'
run: npm run test:visual
- name: Overwrite Playwright snapshots
if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master'
run: |
npm run test:visual -- --update-snapshots
git config user.name '${{ secrets.BPMN_IO_USERNAME }}'
git config user.email '${{ secrets.BPMN_IO_EMAIL }}'
git add -A
git commit -m "chore(CI): updated snapshots [skip ci]" || echo "No changes to commit"
git push
- uses: actions/upload-artifact@v3
if: always()
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export function PlaygroundRoot(props) {
<Section name="Form Input">
<div ref={ dataContainerRef } class="fjs-pgl-text-container"></div>
</Section>
<Section name="Form Output">
<Section name="Form Outpuuuuuuut">
<div ref={ resultContainerRef } class="fjs-pgl-text-container"></div>
</Section>
</div>
Expand Down

0 comments on commit f126415

Please sign in to comment.