.github: e2e: Upload screenshots & hashes if failed
@@ -48,4 +48,22 @@ jobs:
run: make docker-js-integration
- name: Compare screenshots
+ # Allow continuing to generate updated hashes in next step
+ id: compare-screenshots
+ continue-on-error: true
run: make docker-compare-screenshots
+
+ - name: Update screenshot hashes (if mismatched)
+ if: ${{ steps.compare-screenshots.outcome == 'failure' }}
+ run: make docker-update-screenshots
+
+ - name: Archive and upload updated screenshots & hashes
+ if: ${{ steps.compare-screenshots.outcome == 'failure' }}
+ uses: actions/upload-artifact@v3
+ with:
+ name: updated-screenshots-and-hashes
+ path: isso/js/tests/integration/screenshots/
+
+ - name: Fail if "Compare screenshots" step failed
+ if: ${{ steps.compare-screenshots.outcome == 'failure' }}
+ run: /bin/false
