Skip to content

Commit

Permalink
chore: upload test video as test artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Nordquist committed May 11, 2024
1 parent a7ce6b4 commit 7d77110
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build-dockerfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
- master
- release
- beta
- tnordquist/test-ci
paths:
- Dockerfile
- .github
Expand Down
20 changes: 17 additions & 3 deletions .github/workflows/ui-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,21 @@ jobs:
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Install Packages
- name: Test
run: yarn ui-test
- uses: actions/upload-artifact@v4
with: ui-test.*
- name: Post-processing
run: ./scripts/prepareVideo.sh
- uses: hkusu/s3-upload-action@v2
id: upload # specify some ID for use in subsequent steps
with:
aws-access-key-id: ${{ vars.AWS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: 'eu-central-1'
aws-bucket: ${{ vars.AWS_BUCKET }}
file-path: './ui-test.gif'
content-type: image/gif
output-file-url: 'true'
- name: Show URL
run: echo '${{ steps.upload.outputs.file-url }}'
id: artifact-upload-step
- run: echo '![test](${{ steps.upload.outputs.file-url }})' >> $GITHUB_STEP_SUMMARY
3 changes: 0 additions & 3 deletions scripts/uiTests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,4 @@ tmux send-keys -t record q
# Ensure video is written
sleep 5

# Process the video
./scripts/prepareVideo.sh

exit $TEST_EXIT_CODE

0 comments on commit 7d77110

Please sign in to comment.