Skip to content

Commit

Permalink
ci: use codecov for test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
viliusddd committed Aug 1, 2024
1 parent de7128b commit ec7be75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
run: npm run lint

- name: Run unit tests
run: npm run coverage
run: npm run test
env:
DATABASE_URL: ${{ vars.DATABASE_URL }}
PORT: ${{ vars.PORT }}
Expand All @@ -37,8 +37,7 @@ jobs:
DISCORD_SERVER_ID: ${{ secrets.DISCORD_SERVER_ID }}
GIPHY_API_KEY: ${{ secrets.GIPHY_API_KEY }}

- name: Publish Coverage Badge
uses: wjervis7/[email protected]
if: success() || failure()
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
result-type: lines
token: ${{ secrets.CODECOV_TOKEN }}
1 change: 0 additions & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export default {
test: {
globals: true,
coverage: {
reporter: ['json-summary'],
include: ['src/**/*.ts'],
exclude: ['src/utils/*', 'src/database/*', 'src/services/*']
}
Expand Down

0 comments on commit ec7be75

Please sign in to comment.