Repository navigation
184 lines (166 loc) · 6.33 KB
/
Copy pathjava-core-ci.yml
File metadata and controls
184 lines (166 loc) · 6.33 KB
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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
name: Java Core CI
on:
push:
branches: [ master ]
paths:
- 'compileflow-api/**'
- 'compileflow-deploy/compileflow-deploy-api/**'
- 'compileflow-deploy/compileflow-deploy-protocol/**'
- 'compileflow-core/**'
- 'compileflow-tbbpm/**'
- 'compileflow-bpmn/**'
- 'examples/**'
- '.github/workflows/java-core-ci.yml'
- '.mvn/**'
- 'mvnw'
- 'mvnw.cmd'
- 'checkstyle.xml'
- 'checkstyle-javadoc.xml'
- 'scripts/verify_spotbugs_reports.py'
- 'pom.xml'
pull_request:
branches: [ master ]
paths:
- 'compileflow-api/**'
- 'compileflow-deploy/compileflow-deploy-api/**'
- 'compileflow-deploy/compileflow-deploy-protocol/**'
- 'compileflow-core/**'
- 'compileflow-tbbpm/**'
- 'compileflow-bpmn/**'
- 'examples/**'
- '.github/workflows/java-core-ci.yml'
- '.mvn/**'
- 'mvnw'
- 'mvnw.cmd'
- 'checkstyle.xml'
- 'checkstyle-javadoc.xml'
- 'scripts/verify_spotbugs_reports.py'
- 'pom.xml'
permissions:
contents: read
jobs:
core:
name: Core modules (JDK ${{ matrix.java }})
runs-on: ubuntu-latest
timeout-minutes: 25
strategy:
fail-fast: false
matrix:
# All supported LTS releases compile the Java 17 artifact. The complete
# behavior suite runs once at the Java 17 baseline; newer LTS runtimes
# also execute focused concurrency and dynamic-code compatibility checks.
java: [ '17', '21', '25' ]
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
with:
persist-credentials: false
- uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
cache: 'maven'
- name: Build core module artifacts
run: |
./mvnw install \
-pl compileflow-core,compileflow-tbbpm,compileflow-bpmn,compileflow-deploy/compileflow-deploy-protocol \
-am -DskipTests \
-B -V --no-transfer-progress
- name: Run Spotless format check
if: matrix.java == '17'
run: |
./mvnw -Pexamples,benchmarks -pl '!compileflow-bom' \
com.diffplug.spotless:spotless-maven-plugin:3.9.0:check \
-B -V --no-transfer-progress
- name: Run core checkstyle
if: matrix.java == '17'
run: |
./mvnw checkstyle:check \
-pl compileflow-core,compileflow-tbbpm,compileflow-bpmn,compileflow-deploy/compileflow-deploy-protocol \
-am \
-B -V --no-transfer-progress
- name: Run public API Javadoc style
if: matrix.java == '17'
run: |
./mvnw checkstyle:check \
-pl compileflow-api,compileflow-deploy/compileflow-deploy-api,compileflow-deploy/compileflow-deploy-protocol \
-Dcheckstyle.config.location=checkstyle-javadoc.xml \
-B -V --no-transfer-progress
- name: Run core SpotBugs
if: matrix.java == '17'
run: |
./mvnw spotbugs:check \
-pl compileflow-core,compileflow-tbbpm,compileflow-bpmn,compileflow-deploy/compileflow-deploy-protocol \
-am \
-B -V --no-transfer-progress
python3 scripts/verify_spotbugs_reports.py \
compileflow-api \
compileflow-core \
compileflow-tbbpm \
compileflow-bpmn \
compileflow-deploy/compileflow-deploy-api \
compileflow-deploy/compileflow-deploy-protocol
- name: Generate public API Javadocs
if: matrix.java == '17'
run: |
./mvnw javadoc:javadoc \
-pl compileflow-api,compileflow-deploy/compileflow-deploy-api,compileflow-deploy/compileflow-deploy-protocol \
-B -V --no-transfer-progress
- name: Run core tests
if: matrix.java == '17'
run: |
./mvnw test \
-pl compileflow-core,compileflow-tbbpm,compileflow-bpmn,compileflow-deploy/compileflow-deploy-protocol \
-am \
-B -V --no-transfer-progress
- name: Run newer-runtime concurrency contracts
if: matrix.java != '17'
run: |
./mvnw test \
-pl compileflow-core -am \
-Dtest=ProcessEngineExecutorsTest,ParallelExecutorTest,ActionExecutorTest \
-Dsurefire.failIfNoSpecifiedTests=false \
-B -V --no-transfer-progress
- name: Run dynamic-code runtime compatibility smoke
if: matrix.java != '17'
run: |
./mvnw test \
-pl compileflow-core -am \
-Dtest=JavaSourceScriptExecutorTest,GeneratedCodeCompilerTest,InMemoryCompilationTest \
-Dsurefire.failIfNoSpecifiedTests=false \
-B -V --no-transfer-progress
- name: Upload test reports
if: always() && matrix.java == '17'
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: java-core-surefire-jdk-${{ matrix.java }}
path: |
compileflow-core/target/surefire-reports/
compileflow-tbbpm/target/surefire-reports/
compileflow-bpmn/target/surefire-reports/
retention-days: 7
examples:
name: Examples (JDK 17)
runs-on: ubuntu-latest
timeout-minutes: 15
# Run when the core reactor or the examples tree changes. The examples
# profile is not active by default; see <profile><id>examples</id> in the
# root pom. The job always builds starter + deps first so the sample
# resolves the latest snapshot.
if: github.event_name == 'pull_request' || github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
with:
persist-credentials: false
- uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'
- name: Run executable Spring Boot examples
run: |
./mvnw test \
-pl examples/spring-boot-basic,examples/spring-boot-order-fulfillment \
-Pexamples -am \
-Dtest=SampleApplicationTest,OrderFulfillmentApplicationTest \
-Dsurefire.failIfNoSpecifiedTests=false \
-B -V --no-transfer-progress