|
78 | 78 | with:
|
79 | 79 | github-token: ${{ secrets.GITHUB_TOKEN }}
|
80 | 80 | path-to-lcov: lcov.info
|
| 81 | + parallel: true |
| 82 | + flag-name: rust-unit-tests |
81 | 83 |
|
82 | 84 | build:
|
83 | 85 | strategy:
|
@@ -193,6 +195,15 @@ jobs:
|
193 | 195 | shell: bash
|
194 | 196 | - name: Test bindings
|
195 | 197 | run: yarn test
|
| 198 | + - name: Upload coverage report |
| 199 | + env: |
| 200 | + COVERALLS_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} |
| 201 | + uses: coverallsapp/[email protected] |
| 202 | + with: |
| 203 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
| 204 | + path-to-lcov: coverage/lcov.info |
| 205 | + parallel: true |
| 206 | + flag-name: ${{ matrix.settings.target }}-node@${{ matrix.node }}-binding-tests |
196 | 207 |
|
197 | 208 | test-linux-binding:
|
198 | 209 | name: Test ${{ matrix.target }} - node@${{ matrix.node }}
|
@@ -260,7 +271,27 @@ jobs:
|
260 | 271 | image: ${{ steps.docker.outputs.IMAGE }}
|
261 | 272 | options: '-v ${{ github.workspace }}:${{ github.workspace }} -w ${{ github.workspace }} --platform ${{ steps.docker.outputs.PLATFORM }}'
|
262 | 273 | run: yarn test
|
263 |
| - |
| 274 | + - name: Upload coverage report |
| 275 | + env: |
| 276 | + COVERALLS_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} |
| 277 | + uses: coverallsapp/[email protected] |
| 278 | + with: |
| 279 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
| 280 | + path-to-lcov: coverage/lcov.info |
| 281 | + parallel: true |
| 282 | + flag-name: ${{ matrix.target }}-node@${{ matrix.node }}-binding-tests |
| 283 | + coverage: |
| 284 | + name: Report Coverage |
| 285 | + runs-on: ubuntu-latest |
| 286 | + needs: [test, test-macOS-windows-binding, test-linux-binding] |
| 287 | + steps: |
| 288 | + - name: Send coverage |
| 289 | + env: |
| 290 | + COVERALLS_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} |
| 291 | + uses: coverallsapp/[email protected] |
| 292 | + with: |
| 293 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
| 294 | + parallel-finished: true |
264 | 295 | publish:
|
265 | 296 | name: Publish
|
266 | 297 | runs-on: ubuntu-latest
|
|
0 commit comments