From 8e0cb2ad16219517b784ebe4d0227ac09a8d734a Mon Sep 17 00:00:00 2001 From: Maxime Dufour Date: Wed, 24 Apr 2024 12:33:25 +0000 Subject: [PATCH] Upload screenshot if ui-test fails Signed-off-by: Maxime Dufour --- .github/workflows/build.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b49c0d0..c3e9b9a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -73,4 +73,14 @@ jobs: - name: Ui test run: | npm run-script docker-build-ui-test - npm run-script docker-start-ui-test \ No newline at end of file + npm run-script docker-start-ui-test + - uses: actions/upload-artifact@v4 + if: ${{ failure() }} + with: + # Name of the artifact to upload. + # Optional. Default is 'artifact' + name: upload-screenshot + + # A file, directory or wildcard pattern that describes what to upload + # Required. + path: test-resources/screenshots/ \ No newline at end of file