@@ -51,15 +51,17 @@ jobs:
51
51
env :
52
52
DEVELOPER_DIR : ${{ env.CI_XCODE_13 }}
53
53
- name : Prepare codecov
54
- run : |
55
- XCTEST=$(find DerivedData -type f -name 'ParseSwiftTestsmacOS')
56
- PROFDATA=$(find DerivedData -type f -name '*.profdata')
57
- xcrun llvm-cov export "${XCTEST}" -format="lcov" -instr-profile "${PROFDATA}" > info.lcov
54
+ uses : sersoft-gmbh/swift-coverage-action@v2
55
+ id : coverage-files
56
+ with :
57
+ format : lcov
58
+ search-paths : ./DerivedData
58
59
env :
59
60
DEVELOPER_DIR : ${{ env.CI_XCODE_13 }}
60
61
- name : Upload coverage to Codecov
61
62
uses : codecov/codecov-action@v2
62
63
with :
64
+ files : ${{join(fromJSON(steps.coverage-files.outputs.files), ',')}}
63
65
env_vars : MACOS
64
66
env :
65
67
DEVELOPER_DIR : ${{ env.CI_XCODE_13 }}
@@ -73,15 +75,17 @@ jobs:
73
75
env :
74
76
DEVELOPER_DIR : ${{ env.CI_XCODE_13 }}
75
77
- name : Prepare codecov
76
- run : |
77
- XCTEST=$(find DerivedData -type f -name 'ParseSwiftTeststvOS')
78
- PROFDATA=$(find DerivedData -type f -name '*.profdata')
79
- xcrun llvm-cov export "${XCTEST}" -format="lcov" -instr-profile "${PROFDATA}" > info.lcov
78
+ uses : sersoft-gmbh/swift-coverage-action@v2
79
+ id : coverage-files
80
+ with :
81
+ format : lcov
82
+ search-paths : ./DerivedData
80
83
env :
81
84
DEVELOPER_DIR : ${{ env.CI_XCODE_13 }}
82
85
- name : Upload coverage to Codecov
83
86
uses : codecov/codecov-action@v2
84
87
with :
88
+ files : ${{join(fromJSON(steps.coverage-files.outputs.files), ',')}}
85
89
env_vars : TVOS
86
90
env :
87
91
DEVELOPER_DIR : ${{ env.CI_XCODE_13 }}
@@ -120,15 +124,17 @@ jobs:
120
124
env :
121
125
DEVELOPER_DIR : ${{ env.CI_XCODE_13 }}
122
126
- name : Prepare codecov
123
- run : |
124
- XCTEST=$(find .build -type f -name 'ParseSwiftPackageTests')
125
- PROFDATA=$(find .build -type f -name '*.profdata')
126
- xcrun llvm-cov export "${XCTEST}" -format="lcov" -instr-profile "${PROFDATA}" > info_spm.lcov
127
+ uses : sersoft-gmbh/swift-coverage-action@v2
128
+ id : coverage-files
129
+ with :
130
+ format : lcov
131
+ search-paths : ./.build
127
132
env :
128
133
DEVELOPER_DIR : ${{ env.CI_XCODE_13 }}
129
134
- name : Upload coverage to Codecov
130
135
uses : codecov/codecov-action@v2
131
136
with :
137
+ files : ${{join(fromJSON(steps.coverage-files.outputs.files), ',')}}
132
138
env_vars : SPM
133
139
fail_ci_if_error : true
134
140
env :
@@ -154,19 +160,19 @@ jobs:
154
160
env :
155
161
DEVELOPER_DIR : ${{ env.CI_XCODE_VER }}
156
162
- name : Prepare codecov
157
- run : |
158
- XCTEST=$(find .build -type f -name 'ParseSwiftPackageTests')
159
- PROFDATA=$(find .build -type f -name '*.profdata')
160
- xcrun llvm-cov export "${XCTEST}" -format="lcov" -instr-profile "${PROFDATA}" > info_spm_5_2.lcov
161
- env :
162
- DEVELOPER_DIR : ${{ env.CI_XCODE_13 }}
163
+ uses : sersoft-gmbh/swift-coverage-action@v2
164
+ id : coverage-files
165
+ with :
166
+ format : lcov
167
+ search-paths : ./.build
163
168
- name : Upload coverage to Codecov
164
169
uses : codecov/codecov-action@v2
165
170
with :
171
+ files : ${{join(fromJSON(steps.coverage-files.outputs.files), ',')}}
166
172
env_vars : SPM5_2
167
173
fail_ci_if_error : true
168
174
env :
169
- DEVELOPER_DIR : ${{ env.CI_XCODE_13 }}
175
+ DEVELOPER_DIR : ${{ env.CI_XCODE_VER }}
170
176
171
177
linux :
172
178
runs-on : ubuntu-18.04
0 commit comments