From e690a1ecb04d5c79cbe2d83e6b91145d19a9b35b Mon Sep 17 00:00:00 2001 From: Thomas Nordquist Date: Fri, 10 May 2024 22:30:42 +0200 Subject: [PATCH] chore: upload test video as test artifact --- .github/workflows/build-dockerfile.yml | 1 - .github/workflows/ui-test.yml | 18 +++++++++++++++--- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-dockerfile.yml b/.github/workflows/build-dockerfile.yml index 18e8d8b8..658d47c3 100644 --- a/.github/workflows/build-dockerfile.yml +++ b/.github/workflows/build-dockerfile.yml @@ -4,7 +4,6 @@ on: - master - release - beta - - tnordquist/test-ci paths: - Dockerfile - .github diff --git a/.github/workflows/ui-test.yml b/.github/workflows/ui-test.yml index 13cfc512..cff85b73 100644 --- a/.github/workflows/ui-test.yml +++ b/.github/workflows/ui-test.yml @@ -14,7 +14,19 @@ 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.* + - uses: hkusu/s3-upload-action@v2 + id: upload # specify some ID for use in subsequent steps + with: + aws-access-key-id: ${{ env.AWS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: 'eu-central-1' + aws-bucket: ${{ env.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