File tree Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change 9
9
- " main"
10
10
workflow_dispatch :
11
11
12
+ env :
13
+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
14
+
12
15
jobs :
13
16
build :
14
17
runs-on : ${{ matrix.os }}
48
51
49
52
- name : Install psake
50
53
shell : pwsh
51
- run : Install-Module psake -Force
54
+ run : Install-Module -Name psake -RequiredVersion 4.9.0 -Force
52
55
53
56
- name : npm install
54
57
shell : pwsh
@@ -73,12 +76,16 @@ jobs:
73
76
npm run test:coverage
74
77
75
78
- name : Upload Coverage
76
- if : runner.os == 'Linux'
77
- env :
78
- CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
79
- run : |
80
- npm run coverage:upload
81
-
79
+ if : |
80
+ runner.os == 'Linux' &&
81
+ env.CODECOV_TOKEN != ''
82
+ uses : codecov/codecov-action@v4
83
+ with :
84
+ token : ${{ secrets.CODECOV_TOKEN }}
85
+ files : ./coverage.xml
86
+ fail_ci_if_error : true
87
+ verbose : true
88
+
82
89
- name : vsce package
83
90
if : runner.os == 'Linux'
84
91
env :
You can’t perform that action at this time.
0 commit comments