|
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,9 @@ 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 |
219 | 225 |
|
220 | 226 | ##############
|
221 | 227 | # Long-running tests are executed individually.
|
@@ -248,6 +254,9 @@ jobs:
|
248 | 254 | if [ "$DATADOG_API_KEY" != "" ]; then
|
249 | 255 | ./scripts/ci-collect-testruns.sh && npx @datadog/datadog-ci junit upload --service agoric-sdk ./packages/*/junit.xml
|
250 | 256 | fi
|
| 257 | + - name: Upload coverage reports to Codecov |
| 258 | + if: success() || failure() |
| 259 | + uses: codecov/codecov-action@v3 |
251 | 260 |
|
252 | 261 | test-cosmic-swingset:
|
253 | 262 | # BEGIN-TEST-BOILERPLATE
|
@@ -280,6 +289,9 @@ jobs:
|
280 | 289 | if [ "$DATADOG_API_KEY" != "" ]; then
|
281 | 290 | ./scripts/ci-collect-testruns.sh && npx @datadog/datadog-ci junit upload --service agoric-sdk ./packages/*/junit.xml
|
282 | 291 | fi
|
| 292 | + - name: Upload coverage reports to Codecov |
| 293 | + if: success() || failure() |
| 294 | + uses: codecov/codecov-action@v3 |
283 | 295 |
|
284 | 296 | # The test-swingset* tests are split by alphabetical test name.
|
285 | 297 | test-swingset:
|
@@ -310,6 +322,9 @@ jobs:
|
310 | 322 | if [ "$DATADOG_API_KEY" != "" ]; then
|
311 | 323 | ./scripts/ci-collect-testruns.sh && npx @datadog/datadog-ci junit upload --service agoric-sdk ./packages/*/junit.xml
|
312 | 324 | fi
|
| 325 | + - name: Upload coverage reports to Codecov |
| 326 | + if: success() || failure() |
| 327 | + uses: codecov/codecov-action@v3 |
313 | 328 |
|
314 | 329 | test-swingset2:
|
315 | 330 | # BEGIN-TEST-BOILERPLATE
|
@@ -347,6 +362,9 @@ jobs:
|
347 | 362 | if [ "$DATADOG_API_KEY" != "" ]; then
|
348 | 363 | ./scripts/ci-collect-testruns.sh && npx @datadog/datadog-ci junit upload --service agoric-sdk ./packages/*/junit.xml
|
349 | 364 | fi
|
| 365 | + - name: Upload coverage reports to Codecov |
| 366 | + if: success() || failure() |
| 367 | + uses: codecov/codecov-action@v3 |
350 | 368 |
|
351 | 369 | test-swingset3:
|
352 | 370 | # BEGIN-TEST-BOILERPLATE
|
@@ -375,6 +393,9 @@ jobs:
|
375 | 393 | if [ "$DATADOG_API_KEY" != "" ]; then
|
376 | 394 | ./scripts/ci-collect-testruns.sh && npx @datadog/datadog-ci junit upload --service agoric-sdk ./packages/*/junit.xml
|
377 | 395 | fi
|
| 396 | + - name: Upload coverage reports to Codecov |
| 397 | + if: success() || failure() |
| 398 | + uses: codecov/codecov-action@v3 |
378 | 399 |
|
379 | 400 | test-swingset4:
|
380 | 401 | # BEGIN-TEST-BOILERPLATE
|
@@ -404,6 +425,9 @@ jobs:
|
404 | 425 | if [ "$DATADOG_API_KEY" != "" ]; then
|
405 | 426 | ./scripts/ci-collect-testruns.sh && npx @datadog/datadog-ci junit upload --service agoric-sdk ./packages/*/junit.xml
|
406 | 427 | fi
|
| 428 | + - name: Upload coverage reports to Codecov |
| 429 | + if: success() || failure() |
| 430 | + uses: codecov/codecov-action@v3 |
407 | 431 |
|
408 | 432 | test-zoe-unit:
|
409 | 433 | # BEGIN-TEST-BOILERPLATE
|
@@ -435,6 +459,9 @@ jobs:
|
435 | 459 | if [ "$DATADOG_API_KEY" != "" ]; then
|
436 | 460 | ./scripts/ci-collect-testruns.sh && npx @datadog/datadog-ci junit upload --service agoric-sdk ./packages/*/junit.xml
|
437 | 461 | fi
|
| 462 | + - name: Upload coverage reports to Codecov |
| 463 | + if: success() || failure() |
| 464 | + uses: codecov/codecov-action@v3 |
438 | 465 |
|
439 | 466 | test-zoe-swingset:
|
440 | 467 | # BEGIN-TEST-BOILERPLATE
|
@@ -466,6 +493,9 @@ jobs:
|
466 | 493 | if [ "$DATADOG_API_KEY" != "" ]; then
|
467 | 494 | ./scripts/ci-collect-testruns.sh && npx @datadog/datadog-ci junit upload --service agoric-sdk ./packages/*/junit.xml
|
468 | 495 | fi
|
| 496 | + - name: Upload coverage reports to Codecov |
| 497 | + if: success() || failure() |
| 498 | + uses: codecov/codecov-action@v3 |
469 | 499 |
|
470 | 500 | test-docker-build:
|
471 | 501 | runs-on: ubuntu-latest
|
|
0 commit comments