From 97a6313e03220a4bcbe256f3a882b5c574ac9531 Mon Sep 17 00:00:00 2001 From: Michael Kaye <1917473+michaelkaye@users.noreply.github.com> Date: Wed, 14 Jun 2023 17:36:26 +0100 Subject: [PATCH 1/2] Push code coverage percentages to codecov.io. --- .github/workflows/test.yaml | 3 +++ package.json | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 161557d..5143f30 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -16,3 +16,6 @@ jobs: run: "yarn install" - name: Jest run: "yarn run test" + - name: Upload to codecov + uses: codecov/codecov-action@v3 + flags: unittests diff --git a/package.json b/package.json index 9923b6b..1b0716d 100644 --- a/package.json +++ b/package.json @@ -118,6 +118,11 @@ "\\.(css|less|svg)+$": "identity-obj-proxy", "^\\./IndexedDBWorker\\?worker$": "/test/mocks/workerMock.ts", "^\\./olm$": "/test/mocks/olmMock.ts" - } + }, + "collectCoverage": true, + "coverageReporters": [ + "text", + "cobertura" + ] } } From f64df3dcf1a0c0572fcad7c0bacdbb032f88f3da Mon Sep 17 00:00:00 2001 From: Michael Kaye <1917473+michaelkaye@users.noreply.github.com> Date: Thu, 22 Jun 2023 09:18:17 +0100 Subject: [PATCH 2/2] Fix typo in github action config. --- .github/workflows/test.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 5143f30..06dccc2 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -18,4 +18,5 @@ jobs: run: "yarn run test" - name: Upload to codecov uses: codecov/codecov-action@v3 - flags: unittests + with: + flags: unittests