Skip to content

Commit 4b212e8

Browse files
committed
Move from SNAPSHOT build to released version of Undertow. Added a nightly job integration testing.
Signed-off-by: James R. Perkins <[email protected]>
1 parent 286aaac commit 4b212e8

File tree

3 files changed

+116
-16
lines changed

3 files changed

+116
-16
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -38,28 +38,14 @@ jobs:
3838
steps:
3939
- name: Checkout Undertow EE
4040
uses: actions/checkout@v5
41-
with:
42-
path: undertow-ee
43-
- name: Checkout Undertow
44-
uses: actions/checkout@v5
45-
with:
46-
repository: undertow-io/undertow
47-
path: undertow
48-
ref: '2.4.x'
4941
- name: Set up JDK ${{ matrix.java }}
5042
uses: actions/setup-java@v5
5143
with:
5244
java-version: ${{ matrix.java }}
5345
distribution: 'temurin'
5446
cache: 'maven'
55-
- name: Build Undertow SNAPSHOT
56-
run: |
57-
cd undertow
58-
mvn -V clean install -DskipTests -B '-Dmaven.compiler.proc=full'
5947
- name: Build with Maven Java ${{ matrix.java }} - ${{ matrix.os }}
60-
run: |
61-
cd undertow-ee
62-
mvn -V clean install -U -B -fae ${{ matrix.profile }}
48+
run: mvn -V clean install -U -B -fae ${{ matrix.profile }}
6349
- uses: actions/upload-artifact@v4
6450
if: failure()
6551
with:
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# This workflow will build a Java project with Maven
2+
# For more information see: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
3+
4+
name: Test Undertow EE with Undertow 2.4 SNAPSHOT
5+
6+
on:
7+
push:
8+
branches:
9+
- 'main'
10+
schedule:
11+
- cron: '0 0 * * *' # Every day at 00:00 UTC
12+
13+
# Only run the latest job
14+
concurrency:
15+
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
16+
cancel-in-progress: true
17+
18+
jobs:
19+
snapshot-build:
20+
runs-on: ubuntu-latest
21+
timeout-minutes: 90
22+
outputs:
23+
undertow-version: ${{ steps.version.outputs.undertow-version }}
24+
25+
steps:
26+
- name: Checkout Undertow
27+
uses: actions/checkout@v5
28+
with:
29+
repository: undertow-io/undertow
30+
ref: '2.4.x'
31+
- name: Set up JDK
32+
uses: actions/setup-java@v5
33+
with:
34+
java-version: 21
35+
distribution: 'temurin'
36+
cache: 'maven'
37+
- name: Build Undertow SNAPSHOT
38+
run: mvn -V clean install -DskipTests -B '-Dmaven.compiler.proc=full'
39+
- id: version
40+
run: echo "undertow-version=$(mvn -B help:evaluate -Dexpression=project.version -DforceStdout -q)" >> $GITHUB_OUTPUT
41+
- name: Archive the repository
42+
run: |
43+
cd ~
44+
find ./.m2/repository -type d -name "*SNAPSHOT" -print0 | xargs -0 tar -czf ~/undertow-maven-repository.tar.gz
45+
- uses: actions/upload-artifact@v4
46+
with:
47+
name: undertow-maven-repository
48+
path: ~/undertow-maven-repository.tar.gz
49+
retention-days: 5
50+
integration-build:
51+
52+
runs-on: ${{ matrix.os }}
53+
needs: snapshot-build
54+
timeout-minutes: 90
55+
strategy:
56+
fail-fast: false
57+
matrix:
58+
os: [ubuntu-latest, windows-latest ]
59+
java: ['17', '21', '25']
60+
profiles: ['', '-Pproxy', '-Dtest.ipv6=true']
61+
62+
steps:
63+
- name: Checkout Undertow EE
64+
uses: actions/checkout@v5
65+
- name: Set up JDK ${{ matrix.java }}
66+
uses: actions/setup-java@v5
67+
with:
68+
java-version: ${{ matrix.java }}
69+
distribution: 'temurin'
70+
cache: 'maven'
71+
- uses: actions/download-artifact@v4
72+
with:
73+
name: undertow-maven-repository
74+
path: .
75+
- name: Extract Maven Repo
76+
shell: bash
77+
run: |
78+
tar -xzf undertow-maven-repository.tar.gz -C ~
79+
- name: Build with Maven Java ${{ matrix.java }} - ${{ matrix.os }}
80+
run: mvn -V clean install -U -B -fae ${{ matrix.profile }} '-Dversion.io.undertow=${{ needs.snapshot-build.outputs.undertow-version }}'
81+
- uses: actions/upload-artifact@v4
82+
if: failure()
83+
with:
84+
name: surefire-reports-${{ matrix.os }}-${{ matrix.java }}-${{ matrix.profile }}
85+
path: '**/surefire-reports/*'

pom.xml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
<version.jakarta.websocket.jakarta-websocket-api>2.1.0</version.jakarta.websocket.jakarta-websocket-api>
133133
<version.junit>4.13.2</version.junit>
134134
<version.netty>4.1.82.Final</version.netty>
135-
<version.io.undertow>2.4.0.Alpha1-SNAPSHOT</version.io.undertow>
135+
<version.io.undertow>2.4.0.Alpha1</version.io.undertow>
136136
<version.org.apache.httpcomponents>4.5.12</version.org.apache.httpcomponents>
137137
<version.org.jboss.logging>3.6.1.Final</version.org.jboss.logging>
138138
<version.org.jboss.logging.processor>3.0.4.Final</version.org.jboss.logging.processor>
@@ -365,6 +365,35 @@
365365
</dependencies>
366366
</dependencyManagement>
367367

368+
<!-- TODO (jrp) these repositories can be removed once the sync to Maven Central is fixed -->
369+
<repositories>
370+
<repository>
371+
<id>jboss-public-repository-group</id>
372+
<name>JBoss Public Repository Group</name>
373+
<url>https://repository.jboss.org/nexus/content/groups/public/</url>
374+
<layout>default</layout>
375+
<releases>
376+
<enabled>true</enabled>
377+
</releases>
378+
<snapshots>
379+
<enabled>true</enabled>
380+
</snapshots>
381+
</repository>
382+
</repositories>
383+
<pluginRepositories>
384+
<pluginRepository>
385+
<id>jboss-public-repository-group</id>
386+
<name>JBoss Public Repository Group</name>
387+
<url>https://repository.jboss.org/nexus/content/groups/public/</url>
388+
<releases>
389+
<enabled>true</enabled>
390+
</releases>
391+
<snapshots>
392+
<enabled>true</enabled>
393+
</snapshots>
394+
</pluginRepository>
395+
</pluginRepositories>
396+
368397
<build>
369398
<plugins>
370399
<plugin>

0 commit comments

Comments
 (0)