-
Notifications
You must be signed in to change notification settings - Fork 16
40 lines (35 loc) · 1.05 KB
/
java.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Java
on: [push]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
java-version: [8, 11, 17]
#include:
#- os: macos-latest
# node-version: 18.x
#- os: macos-14
# node-version: 18.x
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: 'zulu'
cache: maven
- name: Maven Info
run: echo "home=$(mvn -v -q | grep "Maven home:" | sed -e 's/Maven home://' -e 's/^[[:space:]]*//')" >> $GITHUB_OUTPUT
shell: bash
id: maven
- run: mvn --batch-mode install
env:
M2_HOME: '${{ steps.maven.outputs.home }}'
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: Test Results
path: ${{ github.workspace }}/core/target/surefire-reports/TEST*.xml,${{ github.workspace }}/e2e-tests/target/surefire-reports/TEST*.xml
reporter: java-junit