Skip to content

Commit a0abb76

Browse files
committed
chore: add test result upload to ci
1 parent 0ceb01c commit a0abb76

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.github/workflows/ci.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,33 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
version: ["2.0.X", "2.1.X", canary]
10+
version: ["2.1.X"]
1111
steps:
1212
- name: clone repository
1313
uses: actions/checkout@v4
1414

1515
- name: install deno
16-
uses: denoland/setup-deno@v1
16+
uses: denoland/setup-deno@v2
1717
with:
1818
deno-version: ${{ matrix.version }}
1919

2020
- name: run checks
2121
run: deno task check
2222

2323
- name: run tests
24+
continue-on-error: true
2425
run: deno task test:ci
2526

27+
- name: upload test results
28+
uses: codecov/test-results-action@v1
29+
with:
30+
token: ${{ secrets.CODECOV_TOKEN }}
31+
2632
- name: generate coverage report
2733
run: deno task coverage
2834

2935
- name: upload coverage
30-
uses: codecov/codecov-action@v4
36+
uses: codecov/codecov-action@v5
3137
with:
3238
files: ./cov.lcov
3339
token: ${{ secrets.CODECOV_TOKEN }}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
cov.lcov
22
cov/
3+
junit.xml

deno.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"check": "deno fmt --check && deno lint && deno check --doc *.ts",
2424
"coverage": "deno coverage --lcov --output=cov.lcov ./cov",
2525
"test": "deno test --allow-read --allow-write --unstable-kv --parallel",
26-
"test:ci": "deno test --allow-read --allow-write --unstable-kv --coverage=./cov --parallel"
26+
"test:ci": "deno test --allow-read --allow-write --unstable-kv --junit-path=junit.xml --coverage=./cov --parallel"
2727
},
2828
"lock": false,
2929
"imports": {

0 commit comments

Comments
 (0)