[CI] Add aggregate jacoco report (#370)
This commit is contained in:
21
.github/workflows/ci-pr.yml
vendored
21
.github/workflows/ci-pr.yml
vendored
@@ -38,6 +38,19 @@ jobs:
|
||||
run: |
|
||||
./gradlew clean build -x integrationTest --continue --scan
|
||||
|
||||
- name: Create Aggregated Jacoco Report
|
||||
if: contains(github.event.pull_request.labels.*.name, 'ci/upload-jacoco')
|
||||
run: |
|
||||
./gradlew aggregateJacocoTestReport --info
|
||||
|
||||
- name: Upload Aggregated Jacoco Report
|
||||
if: contains(github.event.pull_request.labels.*.name, 'ci/upload-jacoco')
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: jacoco-results
|
||||
path: 'build/reports/jacoco/**/*.*'
|
||||
retention-days: 3
|
||||
|
||||
- name: Run integration tests
|
||||
run: |
|
||||
./gradlew integrationTest --rerun-tasks -DdownloadRabbitConnector=true --scan
|
||||
@@ -49,11 +62,3 @@ jobs:
|
||||
name: test-results
|
||||
path: '*/build/reports/tests/**/*.*'
|
||||
retention-days: 3
|
||||
|
||||
- name: Capture Jacoco Results
|
||||
if: contains(github.event.pull_request.labels.*.name, 'ci/upload-jacoco')
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: jacoco-results
|
||||
path: '*/build/reports/jacoco/**/*.*'
|
||||
retention-days: 3
|
||||
|
||||
Reference in New Issue
Block a user