File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -158,11 +158,7 @@ jobs:
158
158
run : ls -R .
159
159
shell : bash
160
160
- name : Test bindings
161
- run : yarn test
162
-
163
- - name : Generate coverage report
164
- if : ${{ matrix.settings.host == 'macos-latest' && matrix.node == '22' }}
165
- run : yarn coverage
161
+ run : yarn test --coverage
166
162
- name : Upload coverage report
167
163
if : ${{ matrix.settings.host == 'macos-latest' && matrix.node == '22' }}
168
164
env :
@@ -171,6 +167,7 @@ jobs:
171
167
with :
172
168
github-token : ${{ secrets.GITHUB_TOKEN }}
173
169
path-to-lcov : coverage/lcov.info
170
+ parallel : true
174
171
175
172
test-linux-binding :
176
173
name : Test ${{ matrix.target }} - node@${{ matrix.node }}
@@ -238,6 +235,18 @@ jobs:
238
235
image : ${{ steps.docker.outputs.IMAGE }}
239
236
options : ' -v ${{ github.workspace }}:${{ github.workspace }} -w ${{ github.workspace }} --platform ${{ steps.docker.outputs.PLATFORM }}'
240
237
run : yarn test
238
+ coverage :
239
+ name : Coverage
240
+ runs-on : ubuntu-latest
241
+ needs : [test-macOS-windows-binding, test-linux-binding]
242
+ steps :
243
+ - name : Upload coverage report
244
+ env :
245
+ COVERALLS_TOKEN : ${{ secrets.COVERALLS_REPO_TOKEN }}
246
+ uses :
coverallsapp/[email protected]
247
+ with :
248
+ github-token : ${{ secrets.GITHUB_TOKEN }}
249
+ parallel-finished : true
241
250
publish :
242
251
name : Publish
243
252
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments