Skip to content

Commit

Permalink
[feat]: Upload logs
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkodes committed Jan 21, 2024
1 parent 4f577de commit ffeb9f7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,16 @@ jobs:
- name: 'Running unit tests on ${{ matrix.name }}'
run: |
set -o pipefail && \
xcodebuild -skipPackagePluginValidation -scheme "Networking" -destination "${{ matrix.destination }}" clean -resultBundlePath "TestResults-${{ matrix.name }}" test | xcpretty
xcodebuild -skipPackagePluginValidation -scheme "Networking" -destination "${{ matrix.destination }}" clean -resultBundlePath "TestResults-${{ matrix.name }}" test | tee "build-log-${{ matrix.name }}.txt" | xcpretty
- uses: kishikawakatsumi/xcresulttool@v1
with:
path: 'TestResults-${{ matrix.name }}.xcresult'
title: '${{ matrix.name }} Test Results'
upload-bundles: 'failure'
if: success() || failure()

- name: 'Upload xcresult Artifact'
- name: 'Upload Build Log'
uses: actions/upload-artifact@v3
with:
name: 'xcresult-${{ matrix.name }}'
path: 'TestResults-${{ matrix.name }}.xcresult'
name: 'build-log-${{ matrix.name }}'
path: 'build-log-${{ matrix.name }}.txt'

0 comments on commit ffeb9f7

Please sign in to comment.