Skip to content

Commit 7dcf1d2

Browse files
chore: generate coverage results
1 parent 824fc76 commit 7dcf1d2

File tree

5 files changed

+98
-3
lines changed

5 files changed

+98
-3
lines changed

.github/workflows/coverage.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Generate Coverage
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- next
7+
8+
jobs:
9+
coverage:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Use Node.js
14+
uses: actions/setup-node@v2
15+
with:
16+
node-version: 14.x
17+
- run: yarn
18+
- name: Generate coverage report
19+
run: node_modules/.bin/jest --config jest.json --collectCoverage > coverage.json
20+
- name: Upload report
21+
run: node_modules/.bin/codecov --disable=gcov
22+
env:
23+
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
24+
CI: true

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
dist
3-
.DS_Store
3+
.DS_Store
4+
coverage

jest.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
module.exports = {
22
preset: 'ts-jest',
33
testEnvironment: 'node',
4+
// collectCoverage: true,
5+
collectCoverageFrom: [
6+
"src/**/*.ts"
7+
]
48
};

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"@types/jest": "^26.0.20",
4545
"@types/picomatch": "^2.2.1",
4646
"@types/sharp": "^0.27.1",
47+
"codecov": "^3.8.1",
4748
"comment-parser": "^1.1.2",
4849
"jest": "^26.6.3",
4950
"rollup": "^2.38.0",

yarn.lock

Lines changed: 67 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -903,6 +903,11 @@ agent-base@4, agent-base@^4.3.0:
903903
dependencies:
904904
es6-promisify "^5.0.0"
905905

906+
agent-base@5:
907+
version "5.1.1"
908+
resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-5.1.1.tgz#e8fb3f242959db44d63be665db7a8e739537a32c"
909+
integrity sha512-TMeqbNl2fMW0nMjTEPOwe3J/PRFP4vqeoNuQMG0HlMrtm5QxKqdvAkZ1pRBQ/ulIyDD5Yq0nJ7YbdD8ey0TO3g==
910+
906911
agent-base@6:
907912
version "6.0.2"
908913
resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-6.0.2.tgz#49fff58577cfee3f37176feab4c22e00f86d7f77"
@@ -1051,6 +1056,11 @@ argv-formatter@~1.0.0:
10511056
resolved "https://registry.yarnpkg.com/argv-formatter/-/argv-formatter-1.0.0.tgz#a0ca0cbc29a5b73e836eebe1cbf6c5e0e4eb82f9"
10521057
integrity sha1-oMoMvCmltz6Dbuvhy/bF4OTrgvk=
10531058

1059+
1060+
version "0.0.2"
1061+
resolved "https://registry.yarnpkg.com/argv/-/argv-0.0.2.tgz#ecbd16f8949b157183711b1bda334f37840185ab"
1062+
integrity sha1-7L0W+JSbFXGDcRsb2jNPN4QBhas=
1063+
10541064
arr-diff@^4.0.0:
10551065
version "4.0.0"
10561066
resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520"
@@ -1641,6 +1651,17 @@ code-point-at@^1.0.0:
16411651
resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"
16421652
integrity sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=
16431653

1654+
codecov@^3.8.1:
1655+
version "3.8.1"
1656+
resolved "https://registry.yarnpkg.com/codecov/-/codecov-3.8.1.tgz#06fe026b75525ed1ce864d4a34f1010c52c51546"
1657+
integrity sha512-Qm7ltx1pzLPsliZY81jyaQ80dcNR4/JpcX0IHCIWrHBXgseySqbdbYfkdiXd7o/xmzQpGRVCKGYeTrHUpn6Dcw==
1658+
dependencies:
1659+
argv "0.0.2"
1660+
ignore-walk "3.0.3"
1661+
js-yaml "3.14.0"
1662+
teeny-request "6.0.1"
1663+
urlgrey "0.4.4"
1664+
16441665
collect-v8-coverage@^1.0.0:
16451666
version "1.0.1"
16461667
resolved "https://registry.yarnpkg.com/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz#cc2c8e94fc18bbdffe64d6534570c8a673b27f59"
@@ -3112,6 +3133,14 @@ https-proxy-agent@^2.2.3:
31123133
agent-base "^4.3.0"
31133134
debug "^3.1.0"
31143135

3136+
https-proxy-agent@^4.0.0:
3137+
version "4.0.0"
3138+
resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-4.0.0.tgz#702b71fb5520a132a66de1f67541d9e62154d82b"
3139+
integrity sha512-zoDhWrkR3of1l9QAL8/scJZyLu8j/gBkcwcaQOZh7Gyh/+uJQzGVETdgT30akuwkpL8HTRfssqI3BZuV18teDg==
3140+
dependencies:
3141+
agent-base "5"
3142+
debug "4"
3143+
31153144
https-proxy-agent@^5.0.0:
31163145
version "5.0.0"
31173146
resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz#e2a90542abb68a762e0a0850f6c9edadfd8506b2"
@@ -3166,7 +3195,7 @@ iferr@^1.0.2:
31663195
resolved "https://registry.yarnpkg.com/iferr/-/iferr-1.0.2.tgz#e9fde49a9da06dc4a4194c6c9ed6d08305037a6d"
31673196
integrity sha512-9AfeLfji44r5TKInjhz3W9DyZI1zR1JAf2hVBMGhddAKPqBsupb89jGfbCTHIGZd6fGZl9WlHdn4AObygyMKwg==
31683197

3169-
ignore-walk@^3.0.1:
3198+
ignore-walk@3.0.3, ignore-walk@^3.0.1:
31703199
version "3.0.3"
31713200
resolved "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-3.0.3.tgz#017e2447184bfeade7c238e4aefdd1e8f95b1e37"
31723201
integrity sha512-m7o6xuOaT1aqheYHKf8W6J5pYH85ZI9w077erOzLje3JsB1gkafkAhHHY19dqjulgIZHFm32Cp5uNZgcQqdJKw==
@@ -4030,6 +4059,14 @@ js-tokens@^4.0.0:
40304059
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
40314060
integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==
40324061

4062+
4063+
version "3.14.0"
4064+
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.0.tgz#a7a34170f26a21bb162424d8adacb4113a69e482"
4065+
integrity sha512-/4IbIeHcD9VMHFqDR/gQ7EdZdLimOvW2DdcxFjdyyZ9NsbS+ccrXqVWDtab/lRl5AlUqmpBx8EhPaWR+OtY17A==
4066+
dependencies:
4067+
argparse "^1.0.7"
4068+
esprima "^4.0.0"
4069+
40334070
js-yaml@^3.13.1:
40344071
version "3.14.1"
40354072
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537"
@@ -4934,7 +4971,7 @@ node-fetch-npm@^2.0.2:
49344971
json-parse-better-errors "^1.0.0"
49354972
safe-buffer "^5.1.1"
49364973

4937-
node-fetch@^2.6.1:
4974+
node-fetch@^2.2.0, node-fetch@^2.6.1:
49384975
version "2.6.1"
49394976
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052"
49404977
integrity sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==
@@ -6726,6 +6763,13 @@ stream-each@^1.1.0:
67266763
end-of-stream "^1.1.0"
67276764
stream-shift "^1.0.0"
67286765

6766+
stream-events@^1.0.5:
6767+
version "1.0.5"
6768+
resolved "https://registry.yarnpkg.com/stream-events/-/stream-events-1.0.5.tgz#bbc898ec4df33a4902d892333d47da9bf1c406d5"
6769+
integrity sha512-E1GUzBSgvct8Jsb3v2X15pjzN1tYebtbLaMg+eBOUOAxgbLoSbT2NS91ckc5lJD1KfLjId+jXJRgo0qnV5Nerg==
6770+
dependencies:
6771+
stubs "^3.0.0"
6772+
67296773
stream-iterate@^1.1.0:
67306774
version "1.2.0"
67316775
resolved "https://registry.yarnpkg.com/stream-iterate/-/stream-iterate-1.2.0.tgz#2bd7c77296c1702a46488b8ad41f79865eecd4e1"
@@ -6887,6 +6931,11 @@ strip-json-comments@~2.0.1:
68876931
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a"
68886932
integrity sha1-PFMZQukIwml8DsNEhYwobHygpgo=
68896933

6934+
stubs@^3.0.0:
6935+
version "3.0.0"
6936+
resolved "https://registry.yarnpkg.com/stubs/-/stubs-3.0.0.tgz#e8d2ba1fa9c90570303c030b6900f7d5f89abe5b"
6937+
integrity sha1-6NK6H6nJBXAwPAMLaQD31fiavls=
6938+
68906939
supports-color@^5.3.0:
68916940
version "5.5.0"
68926941
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f"
@@ -6960,6 +7009,17 @@ tar@^6.0.2:
69607009
mkdirp "^1.0.3"
69617010
yallist "^4.0.0"
69627011

7012+
7013+
version "6.0.1"
7014+
resolved "https://registry.yarnpkg.com/teeny-request/-/teeny-request-6.0.1.tgz#9b1f512cef152945827ba7e34f62523a4ce2c5b0"
7015+
integrity sha512-TAK0c9a00ELOqLrZ49cFxvPVogMUFaWY8dUsQc/0CuQPGF+BOxOQzXfE413BAk2kLomwNplvdtMpeaeGWmoc2g==
7016+
dependencies:
7017+
http-proxy-agent "^4.0.0"
7018+
https-proxy-agent "^4.0.0"
7019+
node-fetch "^2.2.0"
7020+
stream-events "^1.0.5"
7021+
uuid "^3.3.2"
7022+
69637023
temp-dir@^2.0.0:
69647024
version "2.0.0"
69657025
resolved "https://registry.yarnpkg.com/temp-dir/-/temp-dir-2.0.0.tgz#bde92b05bdfeb1516e804c9c00ad45177f31321e"
@@ -7348,6 +7408,11 @@ url-parse-lax@^1.0.0:
73487408
dependencies:
73497409
prepend-http "^1.0.1"
73507410

7411+
7412+
version "0.4.4"
7413+
resolved "https://registry.yarnpkg.com/urlgrey/-/urlgrey-0.4.4.tgz#892fe95960805e85519f1cd4389f2cb4cbb7652f"
7414+
integrity sha1-iS/pWWCAXoVRnxzUOJ8stMu3ZS8=
7415+
73517416
use@^3.1.0:
73527417
version "3.1.1"
73537418
resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f"

0 commit comments

Comments
 (0)