Skip to content

Commit afdea6a

Browse files
committed
ci: coverage
1 parent cce6c58 commit afdea6a

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

.github/workflows/test-all-packages.yml

+32-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ env:
1616
DATADOG_SITE: us3.datadoghq.com
1717
DATADOG_API_KEY: ${{ secrets.DATADOG_API_KEY }}
1818
TEST_COLLECT: 'tee -a _testoutput.txt'
19-
19+
NODE_V8_COVERAGE: coverage
2020
# this is required, since explicitly setting bash as shell enables pipefail, which is not
2121
# on by default. This is required to fail correctly when teeing output to a file to collect
2222
# test instrumentation
@@ -149,6 +149,9 @@ jobs:
149149
if [ "$DATADOG_API_KEY" != "" ]; then
150150
./scripts/ci-collect-testruns.sh && npx @datadog/datadog-ci junit upload --service agoric-sdk ./packages/*/junit.xml
151151
fi
152+
- name: Upload coverage reports to Codecov
153+
if: success() || failure()
154+
uses: codecov/codecov-action@v3
152155

153156
test-quick2:
154157
# BEGIN-TEST-BOILERPLATE
@@ -216,6 +219,10 @@ jobs:
216219
if [ "$DATADOG_API_KEY" != "" ]; then
217220
./scripts/ci-collect-testruns.sh && npx @datadog/datadog-ci junit upload --service agoric-sdk ./packages/*/junit.xml
218221
fi
222+
- name: Upload coverage reports to Codecov
223+
if: success() || failure()
224+
uses: codecov/codecov-action@v3
225+
219226

220227
##############
221228
# Long-running tests are executed individually.
@@ -248,6 +255,9 @@ jobs:
248255
if [ "$DATADOG_API_KEY" != "" ]; then
249256
./scripts/ci-collect-testruns.sh && npx @datadog/datadog-ci junit upload --service agoric-sdk ./packages/*/junit.xml
250257
fi
258+
- name: Upload coverage reports to Codecov
259+
if: success() || failure()
260+
uses: codecov/codecov-action@v3
251261

252262
test-cosmic-swingset:
253263
# BEGIN-TEST-BOILERPLATE
@@ -280,6 +290,9 @@ jobs:
280290
if [ "$DATADOG_API_KEY" != "" ]; then
281291
./scripts/ci-collect-testruns.sh && npx @datadog/datadog-ci junit upload --service agoric-sdk ./packages/*/junit.xml
282292
fi
293+
- name: Upload coverage reports to Codecov
294+
if: success() || failure()
295+
uses: codecov/codecov-action@v3
283296

284297
# The test-swingset* tests are split by alphabetical test name.
285298
test-swingset:
@@ -310,6 +323,9 @@ jobs:
310323
if [ "$DATADOG_API_KEY" != "" ]; then
311324
./scripts/ci-collect-testruns.sh && npx @datadog/datadog-ci junit upload --service agoric-sdk ./packages/*/junit.xml
312325
fi
326+
- name: Upload coverage reports to Codecov
327+
if: success() || failure()
328+
uses: codecov/codecov-action@v3
313329

314330
test-swingset2:
315331
# BEGIN-TEST-BOILERPLATE
@@ -347,6 +363,9 @@ jobs:
347363
if [ "$DATADOG_API_KEY" != "" ]; then
348364
./scripts/ci-collect-testruns.sh && npx @datadog/datadog-ci junit upload --service agoric-sdk ./packages/*/junit.xml
349365
fi
366+
- name: Upload coverage reports to Codecov
367+
if: success() || failure()
368+
uses: codecov/codecov-action@v3
350369

351370
test-swingset3:
352371
# BEGIN-TEST-BOILERPLATE
@@ -375,6 +394,9 @@ jobs:
375394
if [ "$DATADOG_API_KEY" != "" ]; then
376395
./scripts/ci-collect-testruns.sh && npx @datadog/datadog-ci junit upload --service agoric-sdk ./packages/*/junit.xml
377396
fi
397+
- name: Upload coverage reports to Codecov
398+
if: success() || failure()
399+
uses: codecov/codecov-action@v3
378400

379401
test-swingset4:
380402
# BEGIN-TEST-BOILERPLATE
@@ -404,6 +426,9 @@ jobs:
404426
if [ "$DATADOG_API_KEY" != "" ]; then
405427
./scripts/ci-collect-testruns.sh && npx @datadog/datadog-ci junit upload --service agoric-sdk ./packages/*/junit.xml
406428
fi
429+
- name: Upload coverage reports to Codecov
430+
if: success() || failure()
431+
uses: codecov/codecov-action@v3
407432

408433
test-zoe-unit:
409434
# BEGIN-TEST-BOILERPLATE
@@ -435,6 +460,9 @@ jobs:
435460
if [ "$DATADOG_API_KEY" != "" ]; then
436461
./scripts/ci-collect-testruns.sh && npx @datadog/datadog-ci junit upload --service agoric-sdk ./packages/*/junit.xml
437462
fi
463+
- name: Upload coverage reports to Codecov
464+
if: success() || failure()
465+
uses: codecov/codecov-action@v3
438466

439467
test-zoe-swingset:
440468
# BEGIN-TEST-BOILERPLATE
@@ -466,6 +494,9 @@ jobs:
466494
if [ "$DATADOG_API_KEY" != "" ]; then
467495
./scripts/ci-collect-testruns.sh && npx @datadog/datadog-ci junit upload --service agoric-sdk ./packages/*/junit.xml
468496
fi
497+
- name: Upload coverage reports to Codecov
498+
if: success() || failure()
499+
uses: codecov/codecov-action@v3
469500

470501
test-docker-build:
471502
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)