From c1abf6e1d71f55c67cfd749604bc1628c4ceecf1 Mon Sep 17 00:00:00 2001 From: Ethan Zimbelman Date: Mon, 28 Aug 2023 12:04:51 -0700 Subject: [PATCH] Upload code coverage reports using the Codecov GitHub Action (#1937) --- .github/workflows/ci-build.yml | 8 +++++++- package.json | 2 -- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index b1822ed30..8586dafaf 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -29,4 +29,10 @@ jobs: run: ./node_modules/.bin/eslint -v - run: npm run build - run: npm test - - run: npm run coverage + - name: Upload coverage to Codecov + if: matrix.node-version == '20.x' + uses: codecov/codecov-action@v3 + with: + directory: coverage + fail_ci_if_error: true + verbose: true diff --git a/package.json b/package.json index 1cfbe1982..1b3ed2bcd 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,6 @@ "mocha": "TS_NODE_PROJECT=tsconfig.json nyc mocha --config .mocharc.json \"src/**/*.spec.ts\"", "test": "npm run lint && npm run mocha && npm run test:types", "test:types": "tsd", - "coverage": "codecov", "watch": "npx nodemon --watch 'src' --ext 'ts' --exec npm run build" }, "repository": "slackapi/bolt", @@ -65,7 +64,6 @@ "@typescript-eslint/eslint-plugin": "^4.4.1", "@typescript-eslint/parser": "^4.4.0", "chai": "^4.2.0", - "codecov": "^3.2.0", "eslint": "^7.26.0", "eslint-config-airbnb-base": "^14.2.1", "eslint-config-airbnb-typescript": "^12.3.1",