From 4b5b39e7c54d5b37913a9d7866a626515b8c06b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Louren=C3=A7o?= Date: Fri, 8 Nov 2024 23:12:40 -0300 Subject: [PATCH] chore(codecov): fix issues with upload coverage --- .github/workflows/pr.yml | 6 +- .github/workflows/release.yml | 6 +- package-lock.json | 109 ++-------------------------------- package.json | 2 - 4 files changed, 15 insertions(+), 108 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index b2de2012..585c0a35 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -48,7 +48,11 @@ jobs: run: npm test - name: Get Coverage Info - run: npm run coverage + uses: codecov/codecov-action@v4 + with: + fail_ci_if_error: true + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} docs: runs-on: ubuntu-latest diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 574f20a1..b547706f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,7 +40,11 @@ jobs: - name: Get Coverage Info if: ${{ steps.release.outputs.release_created }} - run: npm run coverage + uses: codecov/codecov-action@v4 + with: + fail_ci_if_error: true + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - name: NPM Publish run: npm publish --provenance --access public diff --git a/package-lock.json b/package-lock.json index 72073b7c..08be5ba6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -36,7 +36,6 @@ "@typescript-eslint/parser": "6.15.0", "@vitest/coverage-v8": "1.1.3", "body-parser": "1.20.2", - "codecov": "3.8.3", "commitizen": "4.3.0", "cors": "2.8.5", "cz-conventional-changelog": "3.3.0", @@ -3670,14 +3669,6 @@ "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", "dev": true }, - "node_modules/@tootallnate/once": { - "version": "1.1.2", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 6" - } - }, "node_modules/@trpc/server": { "version": "10.44.1", "resolved": "https://registry.npmjs.org/@trpc/server/-/server-10.44.1.tgz", @@ -4467,6 +4458,7 @@ "version": "6.0.2", "dev": true, "license": "MIT", + "optional": true, "dependencies": { "debug": "4" }, @@ -4610,13 +4602,6 @@ "sprintf-js": "~1.0.2" } }, - "node_modules/argv": { - "version": "0.0.2", - "dev": true, - "engines": { - "node": ">=0.6.10" - } - }, "node_modules/array-buffer-byte-length": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", @@ -5350,24 +5335,6 @@ "node": ">= 0.12.0" } }, - "node_modules/codecov": { - "version": "3.8.3", - "dev": true, - "license": "MIT", - "dependencies": { - "argv": "0.0.2", - "ignore-walk": "3.0.4", - "js-yaml": "3.14.1", - "teeny-request": "7.1.1", - "urlgrey": "1.0.0" - }, - "bin": { - "codecov": "bin/codecov" - }, - "engines": { - "node": ">=4.0" - } - }, "node_modules/color-convert": { "version": "2.0.1", "dev": true, @@ -7339,19 +7306,6 @@ "dev": true, "license": "MIT" }, - "node_modules/fast-url-parser": { - "version": "1.1.3", - "dev": true, - "license": "MIT", - "dependencies": { - "punycode": "^1.3.2" - } - }, - "node_modules/fast-url-parser/node_modules/punycode": { - "version": "1.4.1", - "dev": true, - "license": "MIT" - }, "node_modules/fastify": { "version": "4.25.2", "resolved": "https://registry.npmjs.org/fastify/-/fastify-4.25.2.tgz", @@ -8375,23 +8329,11 @@ "dev": true, "license": "MIT" }, - "node_modules/http-proxy-agent": { - "version": "4.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@tootallnate/once": "1", - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/https-proxy-agent": { "version": "5.0.0", "dev": true, "license": "MIT", + "optional": true, "dependencies": { "agent-base": "6", "debug": "4" @@ -8462,14 +8404,6 @@ "node": ">= 4" } }, - "node_modules/ignore-walk": { - "version": "3.0.4", - "dev": true, - "license": "ISC", - "dependencies": { - "minimatch": "^3.0.4" - } - }, "node_modules/import-fresh": { "version": "3.3.0", "dev": true, @@ -9120,18 +9054,6 @@ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", "dev": true }, - "node_modules/js-yaml": { - "version": "3.14.1", - "dev": true, - "license": "MIT", - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, "node_modules/js2xmlparser": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/js2xmlparser/-/js2xmlparser-4.0.2.tgz", @@ -11842,6 +11764,7 @@ "version": "1.0.5", "dev": true, "license": "MIT", + "optional": true, "dependencies": { "stubs": "^3.0.0" } @@ -12023,7 +11946,8 @@ "node_modules/stubs": { "version": "3.0.0", "dev": true, - "license": "MIT" + "license": "MIT", + "optional": true }, "node_modules/sucrase": { "version": "3.35.0", @@ -12158,21 +12082,6 @@ "node": ">=6" } }, - "node_modules/teeny-request": { - "version": "7.1.1", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "http-proxy-agent": "^4.0.0", - "https-proxy-agent": "^5.0.0", - "node-fetch": "^2.6.1", - "stream-events": "^1.0.5", - "uuid": "^8.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/terser": { "version": "5.26.0", "resolved": "https://registry.npmjs.org/terser/-/terser-5.26.0.tgz", @@ -12853,14 +12762,6 @@ "punycode": "^2.1.0" } }, - "node_modules/urlgrey": { - "version": "1.0.0", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "fast-url-parser": "^1.1.3" - } - }, "node_modules/util": { "version": "0.12.5", "resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz", diff --git a/package.json b/package.json index ce2e5121..91595bba 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,6 @@ "build:docs": "tsc -p tsconfig.doc.json", "clean": "rm -rf ./lib/", "cm": "cz", - "coverage": "codecov", "lint": "eslint ./src/ ./test/ --fix", "docs:generate": "npm run docs:generate:parsing && npm run docs:generate:markdown && npm run docs:generate:api-pages", "docs:generate:parsing": "npm run build:docs && npx tsx scripts/parse-docs.ts", @@ -106,7 +105,6 @@ "@typescript-eslint/parser": "6.15.0", "@vitest/coverage-v8": "1.1.3", "body-parser": "1.20.2", - "codecov": "3.8.3", "commitizen": "4.3.0", "cors": "2.8.5", "cz-conventional-changelog": "3.3.0",