Skip to content

Commit f16468c

Browse files
committed
Add reporting to GHA of japicmp and JUnit results
1 parent 2bb3214 commit f16468c

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

.github/workflows/junit.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Publish Unit Test Results
2+
3+
on:
4+
workflow_run:
5+
workflows: ["Validate"]
6+
types:
7+
- completed
8+
9+
jobs:
10+
check:
11+
uses: eclipse-platform/eclipse.platform.releng.aggregator/.github/workflows/publishTestResults.yml@master

.github/workflows/validate.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,23 @@ jobs:
6868
run: ./gradlew build testOlderJavas
6969

7070
- name: Run API Compare
71-
run: ./releng/runjapicmp.sh
71+
run: ./releng/runjapicmp.sh
72+
73+
- name: Upload Test Results
74+
if: always()
75+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
76+
with:
77+
name: Test Results
78+
if-no-files-found: warn
79+
path: |
80+
${{ github.workspace }}/**/build/test-results/**/*.xml
81+
${{ github.workspace }}/**/build/reports/
82+
83+
- name: Upload API Compare results
84+
if: always()
85+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
86+
with:
87+
name: API Compare results
88+
if-no-files-found: warn
89+
path: |
90+
${{ github.workspace }}/build/p2-repository/japicmp-report/

0 commit comments

Comments
 (0)