Skip to content

Commit 68d54fc

Browse files
committed
Add reporting to GHA of japicmp and JUnit results
1 parent be9a969 commit 68d54fc

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-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: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ defaults:
2323

2424

2525
jobs:
26+
event_file:
27+
name: "Event File"
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: Upload
31+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
32+
with:
33+
name: Event File
34+
path: ${{ github.event_path }}
2635

2736
###########################################################
2837
build:
@@ -58,5 +67,26 @@ jobs:
5867
- name: Build with Gradle 🏗️
5968
run: ./gradlew build testOlderJavas
6069

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

0 commit comments

Comments
 (0)