-
Notifications
You must be signed in to change notification settings - Fork 130
157 lines (151 loc) · 5.12 KB
/
pr_build_jdk11_dependents.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
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
name: Windup-dependent projects' PR builder for JDK11
on:
pull_request:
branches:
- master
- 'releases/**'
jobs:
windup-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
java-package: jdk
- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-windup-build-${{ github.sha }}
restore-keys:
${{ runner.os }}-maven-windup-build
- name: Build on JDK 11
run: ./mvnw -B clean install -DskipTests
windup-rulesets-build:
runs-on: ubuntu-latest
needs: [windup-build]
strategy:
fail-fast: false
matrix:
jdk-distribution: [ temurin ]
java-version: [ 11, 17 ]
ruleset-test: [ WindupRulesTest ]
tests-pattern: [ 'rules-reviewed/[a-d]',
'rules-reviewed/e',
'rules-reviewed/[f-z]',
'rules-generated/' ]
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
repository: windup/windup-rulesets
ref: ${{ github.base_ref }}
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: ${{ matrix.jdk-distribution }}
java-package: jdk
- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-windup-rulesets-build-${{ github.sha }}
restore-keys: |
${{ runner.os }}-maven-windup-build-${{ github.sha }}
- name: Test
run: mvn clean test -nsu -f rules -DrunTestsMatching=${{ matrix.tests-pattern }} -Dtest=${{ matrix.ruleset-test }}
windup-rulesets-links-build:
runs-on: ubuntu-latest
needs: [windup-build]
strategy:
fail-fast: false
matrix:
jdk-distribution: [ temurin ]
java-version: [ 11, 17 ]
ruleset-test: [ WindupRulesLinksTest ]
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
repository: windup/windup-rulesets
ref: ${{ github.base_ref }}
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: ${{ matrix.jdk-distribution }}
java-package: jdk
- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-windup-rulesets-links-${{ matrix.java-version }}-build-${{ github.sha }}
restore-keys: |
${{ runner.os }}-maven-windup-build-${{ github.sha }}
- name: Test
run: mvn clean test -nsu -f rules -Dtest=${{ matrix.ruleset-test }}
- name: Build for the windup-maven-plugin-build
run: mvn clean install -nsu -DskipTests
windup-maven-plugin-build:
runs-on: ubuntu-latest
needs: [windup-rulesets-links-build]
strategy:
fail-fast: false
matrix:
java-version: [ 11, 17 ]
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
repository: windup/windup-maven-plugin
ref: ${{ github.base_ref }}
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
java-package: jdk
- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-windup-maven-plugin-build-${{ github.sha }}
restore-keys: |
${{ runner.os }}-maven-windup-rulesets-links-${{ matrix.java-version }}-build-${{ github.sha }}
- name: Build
run: mvn clean install -nsu
windup-quickstarts-build:
runs-on: ubuntu-latest
needs: [windup-maven-plugin-build]
strategy:
fail-fast: false
matrix:
java-version: [ 11, 17 ]
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
repository: windup/windup-quickstarts
ref: ${{ github.base_ref }}
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
java-package: jdk
- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-windup-quickstarts-build-${{ github.sha }}
restore-keys: |
${{ runner.os }}-maven-windup-rulesets-links-${{ matrix.java-version }}-build-${{ github.sha }}
- 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 clean install -s settings.xml -nsu
shell: bash