Skip to content

Commit ba23773

Browse files
committed
Fix pipeline for integration typescript check and running tests with coverage upload
1 parent 7487b07 commit ba23773

2 files changed

Lines changed: 5 additions & 11 deletions

File tree

.github/codecov.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,7 @@ coverage:
88
precision: 2
99
status:
1010
project:
11-
default: off
12-
13-
patch:
14-
default: off
15-
16-
project:
11+
default: false
1712
dotnet:
1813
flags:
1914
- DotNet
@@ -27,6 +22,7 @@ coverage:
2722
threshold: 0%
2823

2924
patch:
25+
default: false
3026
dotnet:
3127
flags:
3228
- DotNet
@@ -36,5 +32,5 @@ coverage:
3632
typescript:
3733
flags:
3834
- TypeScript
39-
target: 100%
35+
target: 6%
4036
threshold: 0%

.github/workflows/build-test-template.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,21 +106,19 @@ jobs:
106106
uses: codecov/codecov-action@v5.5.2
107107
with:
108108
token: ${{ secrets.CODECOV_TOKEN }}
109-
files: coverage.net6.0.cobertura.xml, coverage.net7.0.cobertura.xml, coverage.net8.0.cobertura.xml, coverage.net9.0.cobertura.xml, coverage.net10.0.cobertura.xml
109+
files: src/Cropper.Blazor/Cropper.Blazor.UnitTests/coverage.net6.0.cobertura.xml,src/Cropper.Blazor/Cropper.Blazor.UnitTests/coverage.net7.0.cobertura.xml,src/Cropper.Blazor/Cropper.Blazor.UnitTests/coverage.net8.0.cobertura.xml,src/Cropper.Blazor/Cropper.Blazor.UnitTests/coverage.net9.0.cobertura.xml,src/Cropper.Blazor/Cropper.Blazor.UnitTests/coverage.net10.0.cobertura.xml
110110
flags: DotNet
111111
fail_ci_if_error: true
112112
disable_search: true
113-
directory: src/Cropper.Blazor
114113
verbose: true
115114

116115
- name: Upload TypeScript coverage to Codecov
117116
if: ${{ inputs.publish-coverage == true && inputs.run-js-tests == true }}
118117
uses: codecov/codecov-action@v5.5.2
119118
with:
120119
token: ${{ secrets.CODECOV_TOKEN }}
121-
files: cobertura-coverage.xml
120+
files: src/Cropper.Blazor/Cropper.Blazor/coverage/cobertura-coverage.xml
122121
flags: TypeScript
123122
fail_ci_if_error: true
124123
disable_search: true
125-
directory: src/Cropper.Blazor
126124
verbose: true

0 commit comments

Comments
 (0)