Skip to content

Commit c56904d

Browse files
committed
Limit the coverage upload to one Java Version
1 parent 77a6f7e commit c56904d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/tests.yml

+6
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,24 @@ jobs:
2323
steps:
2424
- name: Checkout Repository
2525
uses: actions/checkout@v4
26+
2627
- name: Set up JDK
2728
uses: actions/setup-java@v2
2829
with:
2930
java-version: ${{ matrix.java }}
3031
distribution: 'adopt'
32+
3133
- name: Grant execute permission for gradlew
3234
run: chmod +x gradlew
35+
3336
- name: Build with Gradle
3437
run: ./gradlew assemble
38+
3539
- name: Run Tests
3640
run: ./gradlew check
41+
3742
- name: Upload coverage to Codecov
43+
if: matrix.java == '11'
3844
uses: codecov/codecov-action@v5
3945
env:
4046
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)