Skip to content

Commit

Permalink
ci: upload functional test logs as artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
kwvg committed Feb 15, 2025
1 parent 1922a94 commit 21eaef5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/test-src.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,24 @@ jobs:
fail-on-cache-miss: true

- name: Run functional tests
id: test
run: |
git config --global --add advice.detachedHead false
git config --global --add safe.directory "$PWD"
export BUILD_TARGET="${{ inputs.build-target }}"
./ci/dash/bundle-output.sh extract
source ./ci/dash/matrix.sh
./ci/dash/test_integrationtests.sh ${INTEGRATION_TESTS_ARGS}
echo "short-sha=$(git rev-parse --short=8 HEAD)" >> "${GITHUB_OUTPUT}"
( [ -d "testlogs" ] && echo "upload-logs=true" >> "${GITHUB_OUTPUT}" ) \
|| echo "upload-logs=false" >> "${GITHUB_OUTPUT}"
shell: bash

- name: Upload test logs
uses: actions/upload-artifact@v4
if: steps.test.outputs.upload-logs == 'true'
with:
name: test_logs-${{ inputs.build-target }}-${{ steps.test.outputs.short-sha }}
path: |
testlogs/
retention-days: 3

0 comments on commit 21eaef5

Please sign in to comment.