Skip to content

Commit 7bbb734

Browse files
authored
Apply remaining changes (#41922)
1 parent f2c5fde commit 7bbb734

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ jobs:
294294
"$(go env GOPATH)/bin/gocover-cobertura" < "coverage-integration-${{ steps.run-tests.outputs.safe_name }}.out" > "coverage-integration-${{ steps.run-tests.outputs.safe_name }}.xml"
295295
296296
- name: Upload integration coverage to code coverage API
297-
if: always() && hashFiles(format('coverage-integration-{0}.xml', steps.run-tests.outputs.safe_name)) != ''
297+
if: always() && vars.CODE_QUALITY_COVERAGE_ENABLED == 'true' && hashFiles(format('coverage-integration-{0}.xml', steps.run-tests.outputs.safe_name)) != ''
298298
uses: actions/upload-code-coverage@abb5995db9e0199b0e2bb9dbd136fce4cb1ec4d3 # v1
299299
with:
300300
file: coverage-integration-${{ steps.run-tests.outputs.safe_name }}.xml
@@ -1166,7 +1166,7 @@ jobs:
11661166
"$(go env GOPATH)/bin/gocover-cobertura" < coverage-integration-unauthenticated.out > coverage-integration-unauthenticated.xml
11671167
11681168
- name: Upload unauthenticated coverage to code coverage API
1169-
if: always() && hashFiles('coverage-integration-unauthenticated.xml') != ''
1169+
if: always() && vars.CODE_QUALITY_COVERAGE_ENABLED == 'true' && hashFiles('coverage-integration-unauthenticated.xml') != ''
11701170
uses: actions/upload-code-coverage@abb5995db9e0199b0e2bb9dbd136fce4cb1ec4d3 # v1
11711171
with:
11721172
file: coverage-integration-unauthenticated.xml
@@ -1241,7 +1241,7 @@ jobs:
12411241
"$(go env GOPATH)/bin/gocover-cobertura" < coverage-integration-add-dispatch-workflow.out > coverage-integration-add-dispatch-workflow.xml
12421242
12431243
- name: Upload dispatch-workflow coverage to code coverage API
1244-
if: always() && hashFiles('coverage-integration-add-dispatch-workflow.xml') != ''
1244+
if: always() && vars.CODE_QUALITY_COVERAGE_ENABLED == 'true' && hashFiles('coverage-integration-add-dispatch-workflow.xml') != ''
12451245
uses: actions/upload-code-coverage@abb5995db9e0199b0e2bb9dbd136fce4cb1ec4d3 # v1
12461246
with:
12471247
file: coverage-integration-add-dispatch-workflow.xml
@@ -1783,7 +1783,7 @@ jobs:
17831783
shell: pwsh
17841784

17851785
- name: Upload redirect test coverage to code coverage API
1786-
if: always() && hashFiles(format('coverage-redirect-{0}.xml', matrix.os)) != ''
1786+
if: always() && vars.CODE_QUALITY_COVERAGE_ENABLED == 'true' && hashFiles(format('coverage-redirect-{0}.xml', matrix.os)) != ''
17871787
uses: actions/upload-code-coverage@abb5995db9e0199b0e2bb9dbd136fce4cb1ec4d3 # v1
17881788
with:
17891789
file: coverage-redirect-${{ matrix.os }}.xml

0 commit comments

Comments
 (0)