Skip to content

Commit 0bb0275

Browse files
committed
disable codecov for pull requests
1 parent 44e25ab commit 0bb0275

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/CI.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,17 @@ jobs:
1313
java: [8, 11, 17]
1414

1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4
1717

1818
- name: Set up JDK ${{ matrix.java }}
19-
uses: actions/setup-java@v1
19+
uses: actions/setup-java@v4
2020
with:
21+
distribution: 'zulu'
2122
java-version: ${{ matrix.java }}
2223

24+
- name: Setup Gradle
25+
uses: gradle/actions/setup-gradle@v3
26+
2327
- name: Build
2428
run: |
2529
chmod +x gradlew
@@ -31,9 +35,11 @@ jobs:
3135
run: ./gradlew check --no-daemon
3236

3337
- name: Build coverage report
38+
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
3439
run: ./gradlew jacocoTestReport --no-daemon
3540

3641
- uses: codecov/codecov-action@v4
42+
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
3743
with:
3844
files: build/reports/jacoco/test/jacocoTestReport.xml
3945
flags: LINUX

0 commit comments

Comments
 (0)