From 5a274117c0bf1754270f088db5af91d16b89ec54 Mon Sep 17 00:00:00 2001 From: Aubrey Quinn Date: Fri, 27 Sep 2024 21:49:31 +0100 Subject: [PATCH] added code coverage reports to coveralls --- .github/workflows/code-coverage.yml | 9 ++++++--- .gitignore | 3 ++- package.json | 3 ++- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml index f91e93a..695bbd8 100644 --- a/.github/workflows/code-coverage.yml +++ b/.github/workflows/code-coverage.yml @@ -17,7 +17,10 @@ jobs: - name: npm install, make test-coverage run: | npm install - make test-coverage + npm run test:coverage - - name: Coveralls - uses: coverallsapp/github-action@v2.3.0 + - name: Upload coverage to Coveralls + uses: coverallsapp/github-action@v2.3.0 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: ./coverage/lcov.info diff --git a/.gitignore b/.gitignore index 76add87..5a19e8a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules -dist \ No newline at end of file +dist +coverage \ No newline at end of file diff --git a/package.json b/package.json index 344510d..e824363 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,8 @@ "update:eslint-docs": "eslint-doc-generator", "fix:md": "npm run lint:docs -- --fix", "test:new": "jest", - "prepare": "husky" + "prepare": "husky", + "test:coverage": "jest --coverage" }, "dependencies": { "eslint-plugin-header": "^3.1.1",