dump all results

This commit is contained in:
417-72KI 2022-04-01 13:06:54 +09:00
parent c5fa5120fa
commit a00844d18f
1 changed files with 22 additions and 3 deletions

View File

@ -52,10 +52,29 @@ jobs:
-enableCodeCoverage=YES \
-resultBundlePath "test_output/${{ matrix.xcode_version }}/$platform.xcresult" \
test | xcpretty
- name: Export test result
uses: kishikawakatsumi/xcresulttool@v1
- name: Upload test result
uses: actions/upload-artifact@v3
with:
path: test_output/${{ matrix.xcode_version }}/${{ steps.test.outputs.platform }}.xcresult
name: ${{ matrix.xcode_version }}-${{ steps.test.outputs.platform }}
path: test_output
if-no-files-found: error
retention-days: 7
xcodebuild_result:
name: Export xcodebuild test result
needs: xcodebuild
runs-on: macOS-latest
steps:
- uses: actions/download-artifact@v3
with:
path: test_output
- id: xcresult-list
name: Fetch xcresult files
run: |
result_files=$(find test_output -name '*.xcresult')
echo "::set-output name=result_files::$result_files"
- uses: kishikawakatsumi/xcresulttool@v1
with:
path: ${{ steps.xcresult-list.outputs.result_files }}
if: success() || failure()
swift_pm:
name: via SwiftPM