Skip to content

Commit

Permalink
chore: migrate to codecov Github action (#754)
Browse files Browse the repository at this point in the history
This is the recommend codecov setup, instead of using the deprecated codecov npm package which is breaking CI. Details in https://about.codecov.io/blog/codecov-uploader-deprecation-plan/
  • Loading branch information
aabmass authored Sep 23, 2024
1 parent 81b32a1 commit 708e32e
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 202 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ jobs:
npm --version
- run: npm install
- run: npm test
- run: npm run codecov
if: matrix.node == 19
- name: Report Coverage
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
verbose: true

lint:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"reporter": ["text", "json"]
}
191 changes: 0 additions & 191 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"clean": "lerna run clean",
"precompile": "tsc --version",
"compile": "lerna run compile",
"codecov": "lerna run codecov",
"test": "lerna run test",
"lint": "lerna run lint",
"fix": "lerna run fix",
Expand Down
2 changes: 0 additions & 2 deletions packages/opentelemetry-cloud-monitoring-exporter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"types": "build/src/index.d.ts",
"repository": "GoogleCloudPlatform/opentelemetry-operations-js",
"scripts": {
"codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../",
"lint": "gts lint",
"clean": "gts clean",
"precompile": "version-update.js",
Expand Down Expand Up @@ -54,7 +53,6 @@
"@types/nock": "11.1.0",
"@types/node": "14.18.63",
"@types/sinon": "17.0.3",
"codecov": "3.8.3",
"gts": "5.3.1",
"mocha": "10.6.0",
"nock": "13.5.4",
Expand Down
2 changes: 0 additions & 2 deletions packages/opentelemetry-cloud-trace-exporter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"types": "build/src/index.d.ts",
"repository": "GoogleCloudPlatform/opentelemetry-operations-js",
"scripts": {
"codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../",
"lint": "gts lint",
"clean": "gts clean",
"precompile": "version-update.js",
Expand Down Expand Up @@ -47,7 +46,6 @@
"@types/mocha": "10.0.7",
"@types/node": "14.18.63",
"@types/sinon": "17.0.3",
"codecov": "3.8.3",
"gcp-metadata": "6.1.0",
"gts": "5.3.1",
"mocha": "10.6.0",
Expand Down
2 changes: 0 additions & 2 deletions packages/opentelemetry-cloud-trace-propagator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"repository": "GoogleCloudPlatform/opentelemetry-operations-js",
"scripts": {
"lint": "gts lint",
"codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../",
"clean": "gts clean",
"precompile": "version-update.js",
"compile": "tsc",
Expand Down Expand Up @@ -44,7 +43,6 @@
"@opentelemetry/core": "1.25.1",
"@types/mocha": "10.0.7",
"@types/node": "14.18.63",
"codecov": "3.8.3",
"gts": "5.3.1",
"mocha": "10.6.0",
"nyc": "15.1.0",
Expand Down
2 changes: 0 additions & 2 deletions packages/opentelemetry-resource-util/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"types": "build/src/index.d.ts",
"repository": "GoogleCloudPlatform/opentelemetry-operations-js",
"scripts": {
"codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../",
"lint": "gts lint",
"clean": "gts clean",
"precompile": "version-update.js",
Expand Down Expand Up @@ -53,7 +52,6 @@
"@types/node": "14.18.63",
"@types/sinon": "17.0.3",
"bignumber.js": "9.1.2",
"codecov": "3.8.3",
"gts": "5.3.1",
"mocha": "10.6.0",
"nyc": "15.1.0",
Expand Down

0 comments on commit 708e32e

Please sign in to comment.