Skip to content

Commit 48ae08c

Browse files
committed
👷 Updated CI to handle new jersey projects.
Renamed existing CI and updated to distinguish webmvc from jersey.
1 parent 6cf29df commit 48ae08c

File tree

2 files changed

+54
-3
lines changed

2 files changed

+54
-3
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Spring Boot Jersey Starter CI
2+
3+
on:
4+
push:
5+
paths:
6+
- 'spring/fluentforms-jersey-spring-boot-**'
7+
- '.github/workflows/spring-boot-jersey-starter-ci.yml'
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
name: Java ${{ matrix.java }} build
13+
runs-on: ubuntu-latest
14+
continue-on-error: ${{ matrix.experimental }}
15+
strategy:
16+
fail-fast: true
17+
matrix:
18+
java: [ 21 ]
19+
experimental: [false]
20+
include:
21+
- java: 25
22+
experimental: true
23+
24+
steps:
25+
- uses: actions/checkout@v6
26+
- name: Set up JDK ${{ matrix.java }}
27+
uses: actions/setup-java@v5
28+
with:
29+
distribution: 'oracle'
30+
java-version: ${{ matrix.java }}
31+
cache: 'maven'
32+
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
33+
settings-path: ${{ github.workspace }} # location for the settings.xml file
34+
35+
- name: Build AutoConfigure with Maven
36+
run: mvn -B install -s $GITHUB_WORKSPACE/settings.xml --file spring/fluentforms-jersey-spring-boot-autoconfigure
37+
env:
38+
GITHUB_TOKEN: ${{ github.token }}
39+
40+
- name: Build AutoConfigure with Maven
41+
if: (github.ref == 'refs/heads/master' || github.ref == 'refs/tags/*') && !matrix.experimental # Only run on main branch or tags and non-experimental
42+
run: mvn -B deploy -s $GITHUB_WORKSPACE/settings.xml --file spring/fluentforms-jersey-spring-boot-autoconfigure
43+
env:
44+
GITHUB_TOKEN: ${{ github.token }}
45+
46+
- name: Publish Starter to GitHub Packages Apache Maven
47+
if: (github.ref == 'refs/heads/master' || github.ref == 'refs/tags/*') && !matrix.experimental # Only run on main branch or tags and non-experimental
48+
run: mvn -B deploy -s $GITHUB_WORKSPACE/settings.xml --file spring/fluentforms-jersey-spring-boot-starter
49+
env:
50+
GITHUB_TOKEN: ${{ github.token }}
51+

.github/workflows/spring-boot-starter-ci.yml renamed to .github/workflows/spring-boot-webmvc-starter-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: Spring Boot Starter CI
1+
name: Spring Boot WebMVC Starter CI
22

33
on:
44
push:
55
paths:
66
- 'spring/fluentforms-spring-boot-**'
7-
- '.github/workflows/spring-boot-starter-ci.yml'
7+
- '.github/workflows/spring-boot-webmvc-starter-ci.yml'
88
workflow_dispatch:
99

1010
jobs:
@@ -22,7 +22,7 @@ jobs:
2222
experimental: true
2323

2424
steps:
25-
- uses: actions/checkout@v5
25+
- uses: actions/checkout@v6
2626
- name: Set up JDK ${{ matrix.java }}
2727
uses: actions/setup-java@v5
2828
with:

0 commit comments

Comments
 (0)