|
35 | 35 | - name: Generate coverage report |
36 | 36 | if: matrix.xcode == '15.4' # Only generate coverage for one Xcode version to avoid duplicates |
37 | 37 | run: | |
38 | | - xcrun llvm-cov export -format="lcov" \ |
39 | | - .build/debug/DicomCorePackageTests.xctest/Contents/MacOS/DicomCorePackageTests \ |
40 | | - -instr-profile .build/debug/codecov/default.profdata > coverage.lcov |
| 38 | + set -euo pipefail |
| 39 | + TEST_BIN=$(ls .build/*/debug/SwiftDICOMDecoderPackageTests.xctest/Contents/MacOS/SwiftDICOMDecoderPackageTests | head -n1) |
| 40 | + PROFDATA=$(ls .build/*/debug/codecov/default.profdata | head -n1) |
| 41 | + xcrun llvm-cov export -format="lcov" "$TEST_BIN" \ |
| 42 | + -instr-profile "$PROFDATA" > coverage.lcov |
41 | 43 |
|
42 | 44 | - name: Upload coverage to Codecov |
43 | 45 | if: matrix.xcode == '15.4' |
@@ -69,20 +71,20 @@ jobs: |
69 | 71 | run: sudo xcode-select -s /Applications/Xcode_15.4.app/Contents/Developer |
70 | 72 |
|
71 | 73 | - name: Show available simulators |
72 | | - run: xcrun xcodebuild -showdestinations -scheme DicomCore-Package |
| 74 | + run: xcrun xcodebuild -showdestinations -scheme SwiftDICOMDecoder |
73 | 75 |
|
74 | 76 | - name: Build for iOS |
75 | 77 | run: | |
76 | 78 | xcodebuild build-for-testing \ |
77 | | - -scheme DicomCore-Package \ |
| 79 | + -scheme SwiftDICOMDecoder \ |
78 | 80 | -destination "${{ matrix.destination }}" \ |
79 | 81 | -enableCodeCoverage YES \ |
80 | 82 | -derivedDataPath .build/ios |
81 | 83 |
|
82 | 84 | - name: Run iOS tests |
83 | 85 | run: | |
84 | 86 | xcodebuild test-without-building \ |
85 | | - -scheme DicomCore-Package \ |
| 87 | + -scheme SwiftDICOMDecoder \ |
86 | 88 | -destination "${{ matrix.destination }}" \ |
87 | 89 | -enableCodeCoverage YES \ |
88 | 90 | -derivedDataPath .build/ios |
|
0 commit comments