Skip to content

Commit

Permalink
fix ci for pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
xvik committed Dec 11, 2024
1 parent b76aaaf commit 75633e8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ jobs:
run: ./gradlew check --no-daemon

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

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

# publish snapshot after successful tests
publish:
if: github.event_name != 'pull_request'
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
needs: build
uses: ./.github/workflows/publish-snapshot.yml

# run examples with published snapshot
examples:
if: github.event_name != 'pull_request'
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
needs: publish
uses: ./.github/workflows/examples-CI.yml

0 comments on commit 75633e8

Please sign in to comment.