From 5835168d00945e35339975381825c08c1137bed4 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Thu, 7 May 2020 11:47:49 +0200 Subject: [PATCH] Add Codecov --- .github/workflows/test.yml | 8 ++++++++ README.md | 3 ++- tsconfig.json | 3 ++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3ba0e50..dca1f85 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,3 +29,11 @@ jobs: - name: Test run: npm run test + - + # https://github.com/codecov/codecov-action + name: Upload coverage + uses: codecov/codecov-action@v1 + if: success() + with: + token: ${{ secrets.CODECOV_TOKEN }} + file: ./coverage/clover.xml diff --git a/README.md b/README.md index f7ef77b..f9ea1ed 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,8 @@

GitHub release GitHub marketplace - Test workflow + Test workflow + Codecov Become a sponsor

diff --git a/tsconfig.json b/tsconfig.json index 4351241..5bc2fba 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,7 +10,8 @@ "rootDir": "./src", "strict": true, "noImplicitAny": false, - "esModuleInterop": true + "esModuleInterop": true, + "sourceMap": true }, "exclude": ["node_modules", "**/*.test.ts"] }