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",