Skip to content

Commit

Permalink
chore(codecov): add tests report
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienZ committed Sep 3, 2024
1 parent 6667e1c commit 7494b6f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ jobs:
- name: Test
run: npm run test:coverage

-
name: Coverage
- name: Coverage
uses: codecov/codecov-action@v4
with:
# fail_ci_if_error: true # optional (default = false)
Expand All @@ -42,3 +41,9 @@ jobs:
# name: codecov-umbrella # optional
token: ${{ secrets.CODECOV_TOKEN }} # required
# verbose: true # optional (default = false)

- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
"lint": "eslint .",
"test": "NUXT_SESSION_PASSWORD='7kP@G!hYvZ2#pL1mQx%3vU8c&RwT4oAs9bFnD#' vitest run",
"test:coverage": "pnpm test -- --coverage",
"test:coverage": "pnpm test -- --coverage --reporter=junit",
"test:watch": "vitest watch",
"test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
},
Expand Down

0 comments on commit 7494b6f

Please sign in to comment.