Skip to content

Commit 4603dc5

Browse files
committed
chore: ci
1 parent f144b37 commit 4603dc5

3 files changed

Lines changed: 20 additions & 100 deletions

File tree

.github/workflows/node.js.yml

Lines changed: 18 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,24 @@
11
name: Node.js CI
2-
3-
on:
4-
push:
5-
branches: [ master ]
6-
pull_request:
7-
branches: [ master ]
8-
2+
on: [push, pull_request]
93
jobs:
10-
build:
4+
run:
115
runs-on: ubuntu-latest
12-
136
strategy:
147
matrix:
15-
node-version: [16.x, 18.x]
16-
8+
node-version: [20.x, 22.x]
179
steps:
18-
- uses: actions/checkout@v2
19-
- name: Use Node.js ${{ matrix.node-version }}
20-
uses: actions/setup-node@v2
21-
with:
22-
node-version: ${{ matrix.node-version }}
23-
cache: 'yarn'
24-
25-
- name: Install dependencies
26-
run: yarn install
27-
28-
- name: Run tests
29-
run: yarn test:cov
30-
31-
- name: Upload coverage to Codecov
32-
run: yarn coverage
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
- name: Use Node.js ${{ matrix.node-version }}
13+
uses: actions/setup-node@v3
14+
with:
15+
node-version: ${{ matrix.node-version }}
16+
cache: 'yarn'
17+
- name: Install dependencies
18+
run: yarn install
19+
- name: Run tests and collect coverage
20+
run: yarn test:cov
21+
- name: Upload coverage to Codecov
22+
uses: codecov/codecov-action@v4
23+
env:
24+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"test": "jest",
1111
"test:watch": "jest --watch",
1212
"test:cov": "jest --coverage",
13-
"coverage": "codecov",
1413
"lint": "eslint '{src,test}/**/*.ts' --fix",
1514
"release": "standard-version"
1615
},
@@ -49,7 +48,6 @@
4948
"@types/node": "^16.9.1",
5049
"@typescript-eslint/eslint-plugin": "^4.31.0",
5150
"@typescript-eslint/parser": "^4.31.0",
52-
"codecov": "^3.8.3",
5351
"eslint": "^7.32.0",
5452
"husky": "^7.0.4",
5553
"jest": "^27.1.1",

yarn.lock

Lines changed: 2 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,11 +1339,6 @@ argparse@^1.0.10, argparse@^1.0.7:
13391339
dependencies:
13401340
sprintf-js "~1.0.2"
13411341

1342-
argv@0.0.2:
1343-
version "0.0.2"
1344-
resolved "https://registry.yarnpkg.com/argv/-/argv-0.0.2.tgz#ecbd16f8949b157183711b1bda334f37840185ab"
1345-
integrity sha512-dEamhpPEwRUBpLNHeuCm/v+g0anFByHahxodVO/BbAarHVBBg2MccCwf9K+o1Pof+2btdnkJelYVUWjW/VrATw==
1346-
13471342
array-ify@^1.0.0:
13481343
version "1.0.0"
13491344
resolved "https://registry.yarnpkg.com/array-ify/-/array-ify-1.0.0.tgz#9e528762b4a9066ad163a6962a364418e9626ece"
@@ -1635,17 +1630,6 @@ co@^4.6.0:
16351630
resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184"
16361631
integrity sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==
16371632

1638-
codecov@^3.8.3:
1639-
version "3.8.3"
1640-
resolved "https://registry.yarnpkg.com/codecov/-/codecov-3.8.3.tgz#9c3e364b8a700c597346ae98418d09880a3fdbe7"
1641-
integrity sha512-Y8Hw+V3HgR7V71xWH2vQ9lyS358CbGCldWlJFR0JirqoGtOoas3R3/OclRTvgUYFK29mmJICDPauVKmpqbwhOA==
1642-
dependencies:
1643-
argv "0.0.2"
1644-
ignore-walk "3.0.4"
1645-
js-yaml "3.14.1"
1646-
teeny-request "7.1.1"
1647-
urlgrey "1.0.0"
1648-
16491633
codepage@~1.15.0:
16501634
version "1.15.0"
16511635
resolved "https://registry.yarnpkg.com/codepage/-/codepage-1.15.0.tgz#2e00519024b39424ec66eeb3ec07227e692618ab"
@@ -2419,13 +2403,6 @@ fast-levenshtein@^2.0.6, fast-levenshtein@~2.0.6:
24192403
resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917"
24202404
integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==
24212405

2422-
fast-url-parser@^1.1.3:
2423-
version "1.1.3"
2424-
resolved "https://registry.yarnpkg.com/fast-url-parser/-/fast-url-parser-1.1.3.tgz#f4af3ea9f34d8a271cf58ad2b3759f431f0b318d"
2425-
integrity sha512-5jOCVXADYNuRkKFzNJ0dCCewsZiYo0dz8QNYljkOpFC6r2U4OBmKtvm/Tsuh4w1YYdDqDb31a8TVhBJ2OJKdqQ==
2426-
dependencies:
2427-
punycode "^1.3.2"
2428-
24292406
fastq@^1.6.0:
24302407
version "1.15.0"
24312408
resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.15.0.tgz#d04d07c6a2a68fe4599fea8d2e103a937fae6b3a"
@@ -2825,7 +2802,7 @@ html-minifier@^4.0.0:
28252802
relateurl "^0.2.7"
28262803
uglify-js "^3.5.1"
28272804

2828-
http-proxy-agent@^4.0.0, http-proxy-agent@^4.0.1:
2805+
http-proxy-agent@^4.0.1:
28292806
version "4.0.1"
28302807
resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz#8a8c8ef7f5932ccf953c296ca8291b95aa74aa3a"
28312808
integrity sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==
@@ -2876,13 +2853,6 @@ iconv-lite@0.4.24:
28762853
dependencies:
28772854
safer-buffer ">= 2.1.2 < 3"
28782855

2879-
ignore-walk@3.0.4:
2880-
version "3.0.4"
2881-
resolved "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-3.0.4.tgz#c9a09f69b7c7b479a5d74ac1a3c0d4236d2a6335"
2882-
integrity sha512-PY6Ii8o1jMRA1z4F2hRkH/xN59ox43DavKvD3oDpfurRlOJyAHpifIwpbdv1n4jt4ov0jSpw3kQ4GhJnpBL6WQ==
2883-
dependencies:
2884-
minimatch "^3.0.4"
2885-
28862856
ignore@^4.0.6:
28872857
version "4.0.6"
28882858
resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc"
@@ -3492,7 +3462,7 @@ js-tokens@^4.0.0:
34923462
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
34933463
integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==
34943464

3495-
js-yaml@3.14.1, js-yaml@^3.13.1:
3465+
js-yaml@^3.13.1:
34963466
version "3.14.1"
34973467
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537"
34983468
integrity sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==
@@ -4293,11 +4263,6 @@ psl@^1.1.28, psl@^1.1.33:
42934263
resolved "https://registry.yarnpkg.com/psl/-/psl-1.9.0.tgz#d0df2a137f00794565fcaf3b2c00cd09f8d5a5a7"
42944264
integrity sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==
42954265

4296-
punycode@^1.3.2:
4297-
version "1.4.1"
4298-
resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e"
4299-
integrity sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==
4300-
43014266
punycode@^2.1.0, punycode@^2.1.1:
43024267
version "2.3.0"
43034268
resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.3.0.tgz#f67fa67c94da8f4d0cfff981aee4118064199b8f"
@@ -4728,13 +4693,6 @@ stream-chain@^2.2.5:
47284693
resolved "https://registry.yarnpkg.com/stream-chain/-/stream-chain-2.2.5.tgz#b30967e8f14ee033c5b9a19bbe8a2cba90ba0d09"
47294694
integrity sha512-1TJmBx6aSWqZ4tx7aTpBDXK0/e2hhcNSTV8+CbFJtDjbb+I1mZ8lHit0Grw9GRT+6JbIrrDd8esncgBi8aBXGA==
47304695

4731-
stream-events@^1.0.5:
4732-
version "1.0.5"
4733-
resolved "https://registry.yarnpkg.com/stream-events/-/stream-events-1.0.5.tgz#bbc898ec4df33a4902d892333d47da9bf1c406d5"
4734-
integrity sha512-E1GUzBSgvct8Jsb3v2X15pjzN1tYebtbLaMg+eBOUOAxgbLoSbT2NS91ckc5lJD1KfLjId+jXJRgo0qnV5Nerg==
4735-
dependencies:
4736-
stubs "^3.0.0"
4737-
47384696
stream-json@^1.7.3:
47394697
version "1.7.5"
47404698
resolved "https://registry.yarnpkg.com/stream-json/-/stream-json-1.7.5.tgz#2ff0563011f22cea4f6a28dbfc0344a53c761fe4"
@@ -4812,11 +4770,6 @@ strip-json-comments@^3.1.0, strip-json-comments@^3.1.1:
48124770
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006"
48134771
integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==
48144772

4815-
stubs@^3.0.0:
4816-
version "3.0.0"
4817-
resolved "https://registry.yarnpkg.com/stubs/-/stubs-3.0.0.tgz#e8d2ba1fa9c90570303c030b6900f7d5f89abe5b"
4818-
integrity sha512-PdHt7hHUJKxvTCgbKX9C1V/ftOcjJQgz8BZwNfV5c4B6dcGqlpelTbJ999jBGZ2jYiPAwcX5dP6oBwVlBlUbxw==
4819-
48204773
supports-color@^5.3.0:
48214774
version "5.5.0"
48224775
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f"
@@ -4911,17 +4864,6 @@ technicalindicators@^3.1.0:
49114864
dependencies:
49124865
"@types/node" "^6.0.96"
49134866

4914-
teeny-request@7.1.1:
4915-
version "7.1.1"
4916-
resolved "https://registry.yarnpkg.com/teeny-request/-/teeny-request-7.1.1.tgz#2b0d156f4a8ad81de44303302ba8d7f1f05e20e6"
4917-
integrity sha512-iwY6rkW5DDGq8hE2YgNQlKbptYpY5Nn2xecjQiNjOXWbKzPGUfmeUBCSQbbr306d7Z7U2N0TPl+/SwYRfua1Dg==
4918-
dependencies:
4919-
http-proxy-agent "^4.0.0"
4920-
https-proxy-agent "^5.0.0"
4921-
node-fetch "^2.6.1"
4922-
stream-events "^1.0.5"
4923-
uuid "^8.0.0"
4924-
49254867
terminal-link@^2.0.0:
49264868
version "2.1.1"
49274869
resolved "https://registry.yarnpkg.com/terminal-link/-/terminal-link-2.1.1.tgz#14a64a27ab3c0df933ea546fba55f2d078edc994"
@@ -5197,13 +5139,6 @@ url-parse@^1.5.3:
51975139
querystringify "^2.1.1"
51985140
requires-port "^1.0.0"
51995141

5200-
urlgrey@1.0.0:
5201-
version "1.0.0"
5202-
resolved "https://registry.yarnpkg.com/urlgrey/-/urlgrey-1.0.0.tgz#72d2f904482d0b602e3c7fa599343d699bbe1017"
5203-
integrity sha512-hJfIzMPJmI9IlLkby8QrsCykQ+SXDeO2W5Q9QTW3QpqZVTx4a/K7p8/5q+/isD8vsbVaFgql/gvAoQCRQ2Cb5w==
5204-
dependencies:
5205-
fast-url-parser "^1.1.3"
5206-
52075142
util-deprecate@^1.0.1, util-deprecate@~1.0.1:
52085143
version "1.0.2"
52095144
resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
@@ -5214,11 +5149,6 @@ uuid@^3.3.2:
52145149
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee"
52155150
integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==
52165151

5217-
uuid@^8.0.0:
5218-
version "8.3.2"
5219-
resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2"
5220-
integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==
5221-
52225152
v8-compile-cache-lib@^3.0.1:
52235153
version "3.0.1"
52245154
resolved "https://registry.yarnpkg.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz#6336e8d71965cb3d35a1bbb7868445a7c05264bf"

0 commit comments

Comments
 (0)