added artifact download
authorkharhamel <oognic@gmail.com>
Tue, 14 Apr 2020 18:42:57 +0000 (20:42 +0200)
committerkharhamel <oognic@gmail.com>
Tue, 14 Apr 2020 18:42:57 +0000 (20:42 +0200)
.github/workflows/continuous_integration.yml

index 35311fd139d037fc8f26b0241e43c91f445639e8..eee2755365d1088be1e96e5ff32b402974e88557 100644 (file)
@@ -83,3 +83,10 @@ jobs:
 
       - name: "Run cypress"
         run: "docker-compose -f docker-compose.yaml -f docker-compose.ci.yml up --exit-code-from cypress cypress" # run cypress in docker-compose and get its exit code
+
+      - name: "Upload the screenshot on test failure"
+        uses: actions/upload-artifact@v1
+        if: failure()
+        with:
+          name: "screenshot"
+          path: "./e2e/cypress/screenshots/spec.js/WorkAdventureGame -- loads (failed).png"
\ No newline at end of file