Skip to content

Commit

Permalink
ci: Change ci to upload test results to codecov (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikuroXina authored Aug 12, 2024
1 parent f56da8c commit 3cac832
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,11 @@ jobs:
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: Dry run publish
run: deno publish --dry-run
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,6 @@ docs/

# npm build
npm/

# Test Analytics
junit.xml
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"tasks": {
"dev": "deno run --watch mod.ts",
"test": "deno test -A src/ && deno test -A --doc src/",
"coverage": "deno test -A --doc --coverage=./coverage/cov_profile src/",
"coverage": "deno test -A --doc --reporter=junit --junit-path=./junit.xml --coverage=./coverage/cov_profile src/",
"doc": "deno run --allow-read --allow-write --allow-env --deny-run npm:[email protected] --tsconfig tsconfig.doc.json --skipErrorChecking --name @mikuroxina/mini-fn mod.ts"
},
"fmt": {
Expand Down

0 comments on commit 3cac832

Please sign in to comment.