Skip to content
This repository was archived by the owner on Mar 23, 2025. It is now read-only.

Commit cd1dd7f

Browse files
committed
Specify -resultBundlePath
1 parent 692eb55 commit cd1dd7f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/test.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
runs-on: macOS-10.15
3535
env:
3636
DEVELOPER_DIR: "/Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer"
37+
RESULT_BUNDLE_BASE: "Test-ApolloDeveloperKit-${{ matrix.apollo }}-${{ matrix.sdk }}"
3738
strategy:
3839
fail-fast: false
3940
matrix:
@@ -110,12 +111,12 @@ jobs:
110111
( cd Carthage/Checkouts/apollo-ios && swift package resolve ) # Workaround for Carthage's timeout error while reading xcodeproj.
111112
carthage build --platform '${{ matrix.platform }}' --use-xcframeworks --no-use-binaries
112113
- name: Run unit tests
113-
run: xcodebuild test -project ApolloDeveloperKit.xcodeproj -scheme ApolloDeveloperKit -sdk '${{ matrix.sdk }}' -destination '${{ matrix.destination }}' | xcpretty
114+
run: xcodebuild test -project ApolloDeveloperKit.xcodeproj -scheme ApolloDeveloperKit -sdk '${{ matrix.sdk }}' -destination '${{ matrix.destination }}' -resultBundlePath '/tmp/${{ env.RESULT_BUNDLE_BASE }}' | xcpretty
114115
- uses: actions/upload-artifact@v2
115116
if: always()
116117
with:
117-
name: Test-ApolloDeveloperKit-${{ matrix.apollo }}-${{ matrix.sdk }}.xcresult
118-
path: ~/Library/Developer/Xcode/DerivedData/ApolloDeveloperKit-*/Logs/Test/Test-ApolloDeveloperKit-*.xcresult
118+
name: ${{ env.RESULT_BUNDLE_BASE }}.xcresult
119+
path: /tmp/${{ env.RESULT_BUNDLE_BASE }}.xcresult
119120
- name: Collect coverages
120121
run: |
121122
bundle exec slather coverage -x --scheme ApolloDeveloperKit ApolloDeveloperKit.xcodeproj

0 commit comments

Comments
 (0)