forked from windup/windup-quickstarts
-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (68 loc) · 2.33 KB
/
pr-build-jdk11.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Windup Quickstarts PR builder
on:
pull_request:
branches:
- master
- 'releases/**'
jobs:
windup-quickstarts-pr-builder-jdk11:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
java-version: [ 11, 17 ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout windup repo
uses: actions/checkout@v3
with:
repository: windup/windup
path: windup
ref: ${{ github.base_ref }}
- name: Checkout windup-maven-plugin repo
uses: actions/checkout@v3
with:
repository: windup/windup-maven-plugin
path: windup-maven-plugin
ref: ${{ github.base_ref }}
- name: Checkout windup-rulesets repo
uses: actions/checkout@v3
with:
repository: windup/windup-rulesets
path: windup-rulesets
ref: ${{ github.base_ref }}
- name: Checkout windup-quickstarts repo
uses: actions/checkout@v3
with:
path: windup-quickstarts
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
java-package: jdk
cache: 'maven'
- name: Build Windup on JDK 11
run: mvn -B clean install -DskipTests -f windup
- name: Build Windup Rules on JDK 11
run: mvn -B clean install -DskipTests -f windup-rulesets
- name: Build Windup Maven Plugin on JDK 11
run: mvn -B clean install -DskipTests -f windup-maven-plugin
- name: Set up Maven
uses: stCarolas/[email protected]
with:
maven-version: 3.8.7
- name: Build on JDK 11
run: mvn -B clean install -s ./windup-quickstarts/settings.xml -DskipTests -f windup-quickstarts
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
java-package: jdk
cache: 'maven'
- name: Test
run: |
export MAVEN_OPTS="--add-modules=java.se --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.util.stream=ALL-UNNAMED"
mvn -B clean install -s ./windup-quickstarts/settings.xml -f windup-quickstarts
shell: bash