From c6285944a12fc8d13d60da0d0ff817db3c2c25fb Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 25 Jun 2021 09:46:40 +0900 Subject: [PATCH] codecov integration --- .github/workflows/test.yml | 2 ++ README.md | 1 + codecov.yml | 2 ++ package.json | 2 +- 4 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 codecov.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1fda601290..630ee1cf59 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,3 +32,5 @@ jobs: run: npm run build - name: Test run: npm run test + - name: Upload Coverage + uses: codecov/codecov-action@v1 diff --git a/README.md b/README.md index 936f904ca2..5694271040 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ **Strongly-typed official Misskey SDK for browsers/Node.js.** [![Test](https://github.com/misskey-dev/misskey.js/actions/workflows/test.yml/badge.svg)](https://github.com/misskey-dev/misskey.js/actions/workflows/test.yml) +[![codecov](https://codecov.io/gh/misskey-dev/misskey.js/branch/develop/graph/badge.svg?token=PbrTtk3nVD)](https://codecov.io/gh/misskey-dev/misskey.js) [![NPM](https://nodei.co/npm/misskey-js.png?downloads=true&downloadRank=true&stars=true)](https://www.npmjs.com/package/misskey-js) diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000000..5242987213 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,2 @@ +codecov: + token: d55e1270-f20a-4727-aa05-2bd57793315a diff --git a/package.json b/package.json index e5c16b16e0..891803620b 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "build": "npm run tsc", "tsc": "tsc", "tsd": "tsd", - "jest": "jest --detectOpenHandles", + "jest": "jest --coverage --detectOpenHandles", "test": "npm run jest && npm run tsd" }, "repository": {