From e2ea24484e59e8d5eab5717f2f1bb7faddb35b26 Mon Sep 17 00:00:00 2001 From: Matt Bishop Date: Wed, 27 Dec 2023 14:44:04 -0500 Subject: [PATCH] Wire up code coverage (#7366) --- .github/workflows/test.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 59f52bd196..2eb8b8f08b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -53,10 +53,10 @@ jobs: # Tests in apps/ are typechecked when their app is built, so we just do it here for libs/ # See https://bitwarden.atlassian.net/browse/EC-497 - name: Run typechecking - run: npm run test:types + run: npm run test:types --coverage - name: Run tests - run: npm run test + run: npm run test --coverage - name: Report test results uses: dorny/test-reporter@c9b3d0e2bd2a4e96aaf424dbaa31c46b42318226 # v1.6.0 @@ -67,6 +67,11 @@ jobs: reporter: jest-junit fail-on-error: true + - name: Upload to codecov.io + uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + rust: name: rust - ${{ matrix.os }} runs-on: ${{ matrix.os || 'ubuntu-latest' }}