File tree 3 files changed +11
-2
lines changed
3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 22
22
- name : Install dependencies
23
23
run : pnpm install
24
24
25
- - name : Test
25
+ - name : Test results & coverage
26
26
run : pnpm run test:coverage
27
27
28
+ - name : Upload test results to Codecov
29
+ if : ${{ !cancelled() }}
30
+ uses : codecov/test-results-action@v1
31
+ with :
32
+ token : ${{ secrets.CODECOV_TOKEN }}
33
+ file : ./junit.xml
34
+
28
35
- name : Upload coverage to Codecov
29
36
uses : codecov/codecov-action@v4
30
37
with :
Original file line number Diff line number Diff line change @@ -6,8 +6,10 @@ node_modules
6
6
package-lock.json
7
7
npm-debug.log
8
8
9
+
9
10
# output
10
11
dist
11
12
12
13
# Test Relative Folders
13
14
coverage
15
+ junit.xml
Original file line number Diff line number Diff line change 39
39
"format" : " prettier --write --parser typescript \" src/**/*.ts\" " ,
40
40
"test" : " vitest run" ,
41
41
"test:watch" : " vitest watch" ,
42
- "test:coverage" : " vitest run --coverage" ,
42
+ "test:coverage" : " vitest run --coverage --reporter=junit --outputFile=./junit.xml " ,
43
43
"ci" : " npm run lint && npm run test && npm run build" ,
44
44
"release" : " . ./scripts/release.sh"
45
45
},
You can’t perform that action at this time.
0 commit comments