Skip to content

Commit

Permalink
- Added clover reporter to nyc
Browse files Browse the repository at this point in the history
- Initial code coverage github action
  • Loading branch information
DiggidyDev committed Mar 21, 2024
1 parent 2ff5aa9 commit f6a99d7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/workflows/vercel-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,19 @@ jobs:
- name: Run unit tests
run: npm run test:unit:cov

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: DiggidyDev/dockerignore-validator
files: ./coverage/lcov.info,./coverage/clover.xml

- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: code-coverage-report
path: coverage

test-components:
needs: install-deps
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .nycrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"exclude": ["**/*.{d,spec}.ts"],

"report-dir": "coverage",
"reporter": ["html", "text", "text-summary"],
"reporter": ["html", "lcov", "clover", "text", "text-summary"],

"all": true,
"check-coverage": true,
Expand Down

0 comments on commit f6a99d7

Please sign in to comment.