forked from eclipse-windowbuilder/windowbuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (49 loc) · 1.35 KB
/
maven.yaml
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
40
41
42
43
44
45
46
47
48
49
50
name: WindowBuilder verification build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
check-dash-licenses:
uses: eclipse/dash-licenses/.github/workflows/mavenLicenseCheck.yml@master
with:
projectId: tools.windowbuilder
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
java: [ 17, 21 ]
runs-on: ${{ matrix.os }}
name: OS ${{ matrix.os }} Java ${{ matrix.java }} compile
timeout-minutes: 90
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up JDK 17/21
uses: actions/setup-java@v3
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Set up Maven
uses: stCarolas/[email protected]
with:
maven-version: 3.9.2
- name: Build with Maven
uses: coactions/setup-xvfb@v1
with:
run: >-
mvn -V -B -fae -ntp clean verify
- name: Upload Test Results for Java-${{ matrix.java }}
uses: actions/upload-artifact@v3
if: always()
with:
name: test-results-${{ matrix.os }}-java${{ matrix.java }}
if-no-files-found: error
path: |
${{ github.workspace }}/**/target/surefire-reports/*.xml