Skip to content

Commit

Permalink
disable codecov for pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
xvik committed Dec 24, 2024
1 parent f456a6b commit 44faaff
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,17 @@ jobs:
java: [8, 11, 17]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Build
run: |
chmod +x gradlew
Expand All @@ -31,9 +35,11 @@ jobs:
run: ./gradlew check --no-daemon

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

- uses: codecov/codecov-action@v4
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
with:
files: build/reports/jacoco/test/jacocoTestReport.xml
flags: LINUX
Expand Down

0 comments on commit 44faaff

Please sign in to comment.