diff --git a/.github/actions/uitests/action.yml b/.github/actions/uitests/action.yml index 4c5ab4a3a..2560d1ec1 100644 --- a/.github/actions/uitests/action.yml +++ b/.github/actions/uitests/action.yml @@ -66,10 +66,19 @@ runs: path: /tmp/uitest-artifacts/ retention-days: 7 + - name: Zip xcresult bundle + if: steps.uitest.outcome == 'failure' + shell: bash + run: | + cd /tmp + mv ${{ inputs.platform }}-uitest.xcresult ${{ inputs.artifact-name }}.xcresult + zip -r -q ${{ inputs.artifact-name }}.xcresult.zip ${{ inputs.artifact-name }}.xcresult + - name: Upload xcresult bundle if: steps.uitest.outcome == 'failure' - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: - name: ${{ inputs.artifact-name }}-xcresult - path: /tmp/${{ inputs.platform }}-uitest.xcresult + name: ${{ inputs.artifact-name }}.xcresult.zip + path: /tmp/${{ inputs.artifact-name }}.xcresult.zip + archive: false retention-days: 7