summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-06-25 09:46:40 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-06-25 09:46:40 +0900
commitc6285944a12fc8d13d60da0d0ff817db3c2c25fb (patch)
tree1bd8ab216644a6116f4039cbef497ad110dac747
parentfix type (diff)
downloadmisskey-c6285944a12fc8d13d60da0d0ff817db3c2c25fb.tar.gz
misskey-c6285944a12fc8d13d60da0d0ff817db3c2c25fb.tar.bz2
misskey-c6285944a12fc8d13d60da0d0ff817db3c2c25fb.zip
codecov integration
-rw-r--r--.github/workflows/test.yml2
-rw-r--r--README.md1
-rw-r--r--codecov.yml2
-rw-r--r--package.json2
4 files changed, 6 insertions, 1 deletions
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": {