Skip to content

Commit 0233707

Browse files
authored
Merge pull request #6772 from Countly/add-upload-fails-video-sdk
Implement artifact upload for failed SDK UI tests
2 parents c95a6ab + 8bf5537 commit 0233707

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,3 +410,13 @@ jobs:
410410
npm install
411411
xvfb-run --auto-servernum --server-args="-screen 0 1280x1024x24" \
412412
npm run cy:run:sdk
413+
414+
- name: Upload UI tests artifacts
415+
if: ${{ failure() }}
416+
shell: bash
417+
working-directory: /opt/countly/ui-tests/cypress
418+
run: |
419+
ARTIFACT_ARCHIVE_NAME="$(date '+%Y%m%d-%H.%M')_${GITHUB_REPOSITORY#*/}_CI#${{ github.run_number }}_ui_test_sdk.tar.gz"
420+
mkdir -p screenshots videos
421+
tar zcvf "$ARTIFACT_ARCHIVE_NAME" screenshots videos
422+
curl -o /tmp/uploader.log -u "${{ secrets.BOX_UPLOAD_AUTH }}" ${{ secrets.BOX_UPLOAD_PATH }} -T "$ARTIFACT_ARCHIVE_NAME"

ui-tests/cypress/e2e/sdk/tool_02.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ describe('2.Warning tooltip (old Web SDK version)', () => {
1616
goToConfigTab(true);
1717
checkTooltipAppears('warning');
1818
});
19-
});
19+
});

0 commit comments

Comments
 (0)