Skip to content

Commit 7f85d46

Browse files
authored
RATIS-2289. Coverage is 0% due to no execution data files provided (#1255)
1 parent 3babac3 commit 7f85d46

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/check.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ on:
7979
env:
8080
MAVEN_ARGS: --batch-mode --show-version
8181
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3
82-
WITH_COVERAGE: true
82+
WITH_COVERAGE: ${{ github.event_name == 'push' }}
8383

8484
jobs:
8585
check:
@@ -157,7 +157,6 @@ jobs:
157157
dev-support/checks/${{ inputs.script }}.sh ${{ inputs.script-args }}
158158
env:
159159
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
160-
WITH_COVERAGE: ${{ inputs.with-coverage }}
161160

162161
- name: Summary of failures
163162
if: ${{ failure() }}

.github/workflows/ci.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
- unit
107107
runs-on: ubuntu-24.04
108108
timeout-minutes: 30
109-
if: (github.repository == 'apache/ratis' || github.repository == 'apache/incubator-ratis') && github.event_name != 'pull_request'
109+
if: github.event_name != 'pull_request'
110110
steps:
111111
- name: Checkout project
112112
uses: actions/checkout@v4
@@ -137,6 +137,7 @@ jobs:
137137
- name: Calculate combined coverage
138138
run: ./dev-support/checks/coverage.sh
139139
- name: Upload coverage to Sonar
140+
if: github.repository == 'apache/ratis'
140141
run: ./dev-support/checks/sonar.sh
141142
env:
142143
SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}

0 commit comments

Comments
 (0)