Skip to content

Commit

Permalink
tests: add uploading test results to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsonk committed Jan 6, 2025
1 parent 08a7eb1 commit baa38fa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ jobs:
- name: run tests generating coverage
run: deno task test:coverage

- name: upload test results
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: generate lcov
run: deno task coverage > cov.lcov

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
.tool-versions
oak.bundle.js
cov.lcov
junit.xml
cov/
npm/
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"coverage": "deno coverage --lcov ./cov",
"example": "deno run --allow-net examples/echoServer.ts",
"test": "deno test --allow-read --allow-write --allow-net --parallel --ignore=npm",
"test:coverage": "deno test --coverage=./cov --allow-read --allow-write --allow-net --cert ./examples/tls/RootCA.crt --parallel --ignore=npm"
"test:coverage": "deno test --coverage=./cov --junit-path=junit.xml --allow-read --allow-write --allow-net --cert ./examples/tls/RootCA.crt --parallel --ignore=npm"
},
"fmt": {
"exclude": ["README.md"]
Expand Down

0 comments on commit baa38fa

Please sign in to comment.