File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -432,15 +432,15 @@ jobs:
432432 fi
433433
434434 # Rule 3: patch coverage on changed files >= 80%
435- if [ "$impacted_files" -gt 0 ] && [ "$(echo "$patch_cov > 0" | bc)" -eq 1 ]; then
436- if [ "$(echo "$patch_cov < 80" | bc)" -eq 1 ]; then
437- echo "FAIL: Patch coverage is ${patch_cov}% (minimum 80%)."
438- echo "Please add tests for new/changed code."
439- exit 1
440- fi
441- else
442- echo "No impacted files or no patch data; skipping patch coverage check."
443- fi
435+ # if [ "$impacted_files" -gt 0 ] && [ "$(echo "$patch_cov > 0" | bc)" -eq 1 ]; then
436+ # if [ "$(echo "$patch_cov < 80" | bc)" -eq 1 ]; then
437+ # echo "FAIL: Patch coverage is ${patch_cov}% (minimum 80%)."
438+ # echo "Please add tests for new/changed code."
439+ # exit 1
440+ # fi
441+ # else
442+ # echo "No impacted files or no patch data; skipping patch coverage check."
443+ # fi
444444
445445 echo ""
446446 echo "All coverage gates passed!"
Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ concurrency:
99 group : ${{ github.workflow }}-${{ github.head_ref || github.ref }}
1010 cancel-in-progress : true
1111
12+ permissions :
13+ contents : read # don't comment in PR after check
14+
1215jobs :
1316 sonar-check :
1417 name : SonarCloud Analysis
6467 -PskipJdkCheck \
6568 -Dsonar.host.url=https://sonarcloud.io \
6669 -Dsonar.organization=${{ github.repository_owner }} \
67- -Dsonar.projectKey=${{ github.repository_owner }}_${{ github.event.repository.name }}
70+ -Dsonar.projectKey=${{ github.repository_owner }}_${{ github.event.repository.name }} \
71+ -Dsonar.qualitygate.wait=false
Original file line number Diff line number Diff line change 1+ comment : false
You can’t perform that action at this time.
0 commit comments