Skip to content

Commit 692bc0d

Browse files
ErikCHErik Hanchett
andauthored
chore(ci): Upload artifacts on error (#3138)
* Update build and runtime tests * Updated wildcard * Updated wildcard * removed ci Co-authored-by: Erik Hanchett <[email protected]>
1 parent b24f2fc commit 692bc0d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/build-and-runtime-test.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,18 @@ jobs:
133133
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_METRIC_LOGGER }}
134134
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_METRIC_LOGGER }}
135135
AWS_REGION: us-east-2
136+
137+
upload-files-on-error:
138+
#send video and screenshots on failure as an artifact to be checked later
139+
runs-on: ubuntu-latest
140+
needs: build
141+
if: ${{ failure() }}
142+
steps:
143+
- name: Upload videos and screenshots
144+
uses: actions/upload-artifact@v3
145+
with:
146+
name: build-and-runtime-test-cypress-error-files
147+
path: |
148+
canary/e2e/cypress/videos/**
149+
canary/e2e/cypress/screenshots/**
150+
retention-days: 5

0 commit comments

Comments
 (0)