|
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: codecov_reports |
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,10 @@ 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 |
| 155 | + |
152 | 156 |
|
153 | 157 | test-quick2:
|
154 | 158 | # BEGIN-TEST-BOILERPLATE
|
@@ -248,6 +252,9 @@ jobs:
|
248 | 252 | if [ "$DATADOG_API_KEY" != "" ]; then
|
249 | 253 | ./scripts/ci-collect-testruns.sh && npx @datadog/datadog-ci junit upload --service agoric-sdk ./packages/*/junit.xml
|
250 | 254 | fi
|
| 255 | + - name: Upload coverage reports to Codecov |
| 256 | + if: success() || failure() |
| 257 | + uses: codecov/codecov-action@v3 |
251 | 258 |
|
252 | 259 | test-cosmic-swingset:
|
253 | 260 | # BEGIN-TEST-BOILERPLATE
|
@@ -280,6 +287,9 @@ jobs:
|
280 | 287 | if [ "$DATADOG_API_KEY" != "" ]; then
|
281 | 288 | ./scripts/ci-collect-testruns.sh && npx @datadog/datadog-ci junit upload --service agoric-sdk ./packages/*/junit.xml
|
282 | 289 | fi
|
| 290 | + - name: Upload coverage reports to Codecov |
| 291 | + if: success() || failure() |
| 292 | + uses: codecov/codecov-action@v3 |
283 | 293 |
|
284 | 294 | # The test-swingset* tests are split by alphabetical test name.
|
285 | 295 | test-swingset:
|
@@ -310,6 +320,9 @@ jobs:
|
310 | 320 | if [ "$DATADOG_API_KEY" != "" ]; then
|
311 | 321 | ./scripts/ci-collect-testruns.sh && npx @datadog/datadog-ci junit upload --service agoric-sdk ./packages/*/junit.xml
|
312 | 322 | fi
|
| 323 | + - name: Upload coverage reports to Codecov |
| 324 | + if: success() || failure() |
| 325 | + uses: codecov/codecov-action@v3 |
313 | 326 |
|
314 | 327 | test-swingset2:
|
315 | 328 | # BEGIN-TEST-BOILERPLATE
|
@@ -347,6 +360,9 @@ jobs:
|
347 | 360 | if [ "$DATADOG_API_KEY" != "" ]; then
|
348 | 361 | ./scripts/ci-collect-testruns.sh && npx @datadog/datadog-ci junit upload --service agoric-sdk ./packages/*/junit.xml
|
349 | 362 | fi
|
| 363 | + - name: Upload coverage reports to Codecov |
| 364 | + if: success() || failure() |
| 365 | + uses: codecov/codecov-action@v3 |
350 | 366 |
|
351 | 367 | test-swingset3:
|
352 | 368 | # BEGIN-TEST-BOILERPLATE
|
@@ -375,6 +391,9 @@ jobs:
|
375 | 391 | if [ "$DATADOG_API_KEY" != "" ]; then
|
376 | 392 | ./scripts/ci-collect-testruns.sh && npx @datadog/datadog-ci junit upload --service agoric-sdk ./packages/*/junit.xml
|
377 | 393 | fi
|
| 394 | + - name: Upload coverage reports to Codecov |
| 395 | + if: success() || failure() |
| 396 | + uses: codecov/codecov-action@v3 |
378 | 397 |
|
379 | 398 | test-swingset4:
|
380 | 399 | # BEGIN-TEST-BOILERPLATE
|
@@ -404,6 +423,9 @@ jobs:
|
404 | 423 | if [ "$DATADOG_API_KEY" != "" ]; then
|
405 | 424 | ./scripts/ci-collect-testruns.sh && npx @datadog/datadog-ci junit upload --service agoric-sdk ./packages/*/junit.xml
|
406 | 425 | fi
|
| 426 | + - name: Upload coverage reports to Codecov |
| 427 | + if: success() || failure() |
| 428 | + uses: codecov/codecov-action@v3 |
407 | 429 |
|
408 | 430 | test-zoe-unit:
|
409 | 431 | # BEGIN-TEST-BOILERPLATE
|
@@ -435,6 +457,9 @@ jobs:
|
435 | 457 | if [ "$DATADOG_API_KEY" != "" ]; then
|
436 | 458 | ./scripts/ci-collect-testruns.sh && npx @datadog/datadog-ci junit upload --service agoric-sdk ./packages/*/junit.xml
|
437 | 459 | fi
|
| 460 | + - name: Upload coverage reports to Codecov |
| 461 | + if: success() || failure() |
| 462 | + uses: codecov/codecov-action@v3 |
438 | 463 |
|
439 | 464 | test-zoe-swingset:
|
440 | 465 | # BEGIN-TEST-BOILERPLATE
|
@@ -466,3 +491,19 @@ jobs:
|
466 | 491 | if [ "$DATADOG_API_KEY" != "" ]; then
|
467 | 492 | ./scripts/ci-collect-testruns.sh && npx @datadog/datadog-ci junit upload --service agoric-sdk ./packages/*/junit.xml
|
468 | 493 | fi
|
| 494 | + - name: Upload coverage reports to Codecov |
| 495 | + if: success() || failure() |
| 496 | + uses: codecov/codecov-action@v3 |
| 497 | + |
| 498 | + test-docker-build: |
| 499 | + runs-on: ubuntu-latest |
| 500 | + steps: |
| 501 | + - uses: actions/checkout@v3 |
| 502 | + - name: docker build (sdk) |
| 503 | + run: cd packages/deployment && ./scripts/test-docker-build.sh | $TEST_COLLECT |
| 504 | + - name: Report tests |
| 505 | + if: success() || failure() |
| 506 | + run: | |
| 507 | + if [ "$DATADOG_API_KEY" != "" ]; then |
| 508 | + ./scripts/ci-collect-testruns.sh && npx @datadog/datadog-ci junit upload --service agoric-sdk ./packages/*/junit.xml |
| 509 | + fi |
0 commit comments