Skip to content

Commit baa38fa

Browse files
committed
tests: add uploading test results to CI
1 parent 08a7eb1 commit baa38fa

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ jobs:
2626
- name: run tests generating coverage
2727
run: deno task test:coverage
2828

29+
- name: upload test results
30+
uses: codecov/test-results-action@v1
31+
with:
32+
token: ${{ secrets.CODECOV_TOKEN }}
33+
2934
- name: generate lcov
3035
run: deno task coverage > cov.lcov
3136

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
.tool-versions
33
oak.bundle.js
44
cov.lcov
5+
junit.xml
56
cov/
67
npm/

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"coverage": "deno coverage --lcov ./cov",
3636
"example": "deno run --allow-net examples/echoServer.ts",
3737
"test": "deno test --allow-read --allow-write --allow-net --parallel --ignore=npm",
38-
"test:coverage": "deno test --coverage=./cov --allow-read --allow-write --allow-net --cert ./examples/tls/RootCA.crt --parallel --ignore=npm"
38+
"test:coverage": "deno test --coverage=./cov --junit-path=junit.xml --allow-read --allow-write --allow-net --cert ./examples/tls/RootCA.crt --parallel --ignore=npm"
3939
},
4040
"fmt": {
4141
"exclude": ["README.md"]

0 commit comments

Comments
 (0)