|
16 | 16 | DATADOG_SITE: us3.datadoghq.com
|
17 | 17 | DATADOG_API_KEY: ${{ secrets.DATADOG_API_KEY }}
|
18 | 18 | TEST_COLLECT: 'tee -a _testoutput.txt'
|
19 |
| - |
| 19 | + NODE_V8_COVERAGE: coverage |
20 | 20 | # this is required, since explicitly setting bash as shell enables pipefail, which is not
|
21 | 21 | # on by default. This is required to fail correctly when teeing output to a file to collect
|
22 | 22 | # test instrumentation
|
@@ -149,6 +149,9 @@ jobs:
|
149 | 149 | if [ "$DATADOG_API_KEY" != "" ]; then
|
150 | 150 | ./scripts/ci-collect-testruns.sh && npx @datadog/datadog-ci junit upload --service agoric-sdk ./packages/*/junit.xml
|
151 | 151 | fi
|
| 152 | + - name: Upload coverage reports to Codecov |
| 153 | + if: success() || failure() |
| 154 | + uses: codecov/codecov-action@v3 |
152 | 155 |
|
153 | 156 | test-quick2:
|
154 | 157 | # BEGIN-TEST-BOILERPLATE
|
@@ -216,6 +219,10 @@ jobs:
|
216 | 219 | if [ "$DATADOG_API_KEY" != "" ]; then
|
217 | 220 | ./scripts/ci-collect-testruns.sh && npx @datadog/datadog-ci junit upload --service agoric-sdk ./packages/*/junit.xml
|
218 | 221 | fi
|
| 222 | + - name: Upload coverage reports to Codecov |
| 223 | + if: success() || failure() |
| 224 | + uses: codecov/codecov-action@v3 |
| 225 | + |
219 | 226 |
|
220 | 227 | ##############
|
221 | 228 | # Long-running tests are executed individually.
|
@@ -248,6 +255,9 @@ jobs:
|
248 | 255 | if [ "$DATADOG_API_KEY" != "" ]; then
|
249 | 256 | ./scripts/ci-collect-testruns.sh && npx @datadog/datadog-ci junit upload --service agoric-sdk ./packages/*/junit.xml
|
250 | 257 | fi
|
| 258 | + - name: Upload coverage reports to Codecov |
| 259 | + if: success() || failure() |
| 260 | + uses: codecov/codecov-action@v3 |
251 | 261 |
|
252 | 262 | test-cosmic-swingset:
|
253 | 263 | # BEGIN-TEST-BOILERPLATE
|
@@ -280,6 +290,9 @@ jobs:
|
280 | 290 | if [ "$DATADOG_API_KEY" != "" ]; then
|
281 | 291 | ./scripts/ci-collect-testruns.sh && npx @datadog/datadog-ci junit upload --service agoric-sdk ./packages/*/junit.xml
|
282 | 292 | fi
|
| 293 | + - name: Upload coverage reports to Codecov |
| 294 | + if: success() || failure() |
| 295 | + uses: codecov/codecov-action@v3 |
283 | 296 |
|
284 | 297 | # The test-swingset* tests are split by alphabetical test name.
|
285 | 298 | test-swingset:
|
@@ -310,6 +323,9 @@ jobs:
|
310 | 323 | if [ "$DATADOG_API_KEY" != "" ]; then
|
311 | 324 | ./scripts/ci-collect-testruns.sh && npx @datadog/datadog-ci junit upload --service agoric-sdk ./packages/*/junit.xml
|
312 | 325 | fi
|
| 326 | + - name: Upload coverage reports to Codecov |
| 327 | + if: success() || failure() |
| 328 | + uses: codecov/codecov-action@v3 |
313 | 329 |
|
314 | 330 | test-swingset2:
|
315 | 331 | # BEGIN-TEST-BOILERPLATE
|
@@ -347,6 +363,9 @@ jobs:
|
347 | 363 | if [ "$DATADOG_API_KEY" != "" ]; then
|
348 | 364 | ./scripts/ci-collect-testruns.sh && npx @datadog/datadog-ci junit upload --service agoric-sdk ./packages/*/junit.xml
|
349 | 365 | fi
|
| 366 | + - name: Upload coverage reports to Codecov |
| 367 | + if: success() || failure() |
| 368 | + uses: codecov/codecov-action@v3 |
350 | 369 |
|
351 | 370 | test-swingset3:
|
352 | 371 | # BEGIN-TEST-BOILERPLATE
|
@@ -375,6 +394,9 @@ jobs:
|
375 | 394 | if [ "$DATADOG_API_KEY" != "" ]; then
|
376 | 395 | ./scripts/ci-collect-testruns.sh && npx @datadog/datadog-ci junit upload --service agoric-sdk ./packages/*/junit.xml
|
377 | 396 | fi
|
| 397 | + - name: Upload coverage reports to Codecov |
| 398 | + if: success() || failure() |
| 399 | + uses: codecov/codecov-action@v3 |
378 | 400 |
|
379 | 401 | test-swingset4:
|
380 | 402 | # BEGIN-TEST-BOILERPLATE
|
@@ -404,6 +426,9 @@ jobs:
|
404 | 426 | if [ "$DATADOG_API_KEY" != "" ]; then
|
405 | 427 | ./scripts/ci-collect-testruns.sh && npx @datadog/datadog-ci junit upload --service agoric-sdk ./packages/*/junit.xml
|
406 | 428 | fi
|
| 429 | + - name: Upload coverage reports to Codecov |
| 430 | + if: success() || failure() |
| 431 | + uses: codecov/codecov-action@v3 |
407 | 432 |
|
408 | 433 | test-zoe-unit:
|
409 | 434 | # BEGIN-TEST-BOILERPLATE
|
@@ -435,6 +460,9 @@ jobs:
|
435 | 460 | if [ "$DATADOG_API_KEY" != "" ]; then
|
436 | 461 | ./scripts/ci-collect-testruns.sh && npx @datadog/datadog-ci junit upload --service agoric-sdk ./packages/*/junit.xml
|
437 | 462 | fi
|
| 463 | + - name: Upload coverage reports to Codecov |
| 464 | + if: success() || failure() |
| 465 | + uses: codecov/codecov-action@v3 |
438 | 466 |
|
439 | 467 | test-zoe-swingset:
|
440 | 468 | # BEGIN-TEST-BOILERPLATE
|
@@ -466,6 +494,9 @@ jobs:
|
466 | 494 | if [ "$DATADOG_API_KEY" != "" ]; then
|
467 | 495 | ./scripts/ci-collect-testruns.sh && npx @datadog/datadog-ci junit upload --service agoric-sdk ./packages/*/junit.xml
|
468 | 496 | fi
|
| 497 | + - name: Upload coverage reports to Codecov |
| 498 | + if: success() || failure() |
| 499 | + uses: codecov/codecov-action@v3 |
469 | 500 |
|
470 | 501 | test-docker-build:
|
471 | 502 | runs-on: ubuntu-latest
|
|
0 commit comments