Skip to content

Commit 0aa6d3b

Browse files
committed
Setup CI build against Java 21 & 23
Closes gh-1472
1 parent fcf6367 commit 0aa6d3b

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

.github/workflows/ci.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: CI
2+
on:
3+
schedule:
4+
- cron: '30 10 * * *'
5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
jobs:
8+
ci:
9+
name: '${{ matrix.os.name}} | Java ${{ matrix.java.version}}'
10+
if: ${{ github.repository == 'spring-projects/spring-ws' }}
11+
runs-on: ${{ matrix.os.id }}
12+
timeout-minutes: 60
13+
strategy:
14+
matrix:
15+
os:
16+
- id: ubuntu-latest
17+
name: Linux
18+
java:
19+
- version: 17
20+
toolchain: false
21+
- version: 21
22+
toolchain: true
23+
- version: 23
24+
toolchain: true
25+
exclude:
26+
- os:
27+
name: Linux
28+
java:
29+
version: 17
30+
steps:
31+
- name: Prepare Windows runner
32+
if: ${{ runner.os == 'Windows' }}
33+
run: |
34+
git config --global core.autocrlf true
35+
git config --global core.longPaths true
36+
Stop-Service -name Docker
37+
- name: Check Out Code
38+
uses: actions/checkout@v4
39+
- name: Build
40+
id: build
41+
uses: ./.github/actions/build
42+
with:
43+
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
44+
java-early-access: ${{ matrix.java.early-access || 'false' }}
45+
java-distribution: ${{ matrix.java.distribution }}
46+
java-toolchain: ${{ matrix.java.toolchain }}
47+
java-version: ${{ matrix.java.version }}
48+
- name: Send Notification
49+
if: always()
50+
uses: ./.github/actions/send-notification
51+
with:
52+
build-scan-url: ${{ steps.build.outputs.build-scan-url }}
53+
run-name: ${{ format('{0} | {1} | Java {2}', github.ref_name, matrix.os.name, matrix.java.version) }}
54+
status: ${{ job.status }}
55+
webhook-url: ${{ secrets.GOOGLE_CHAT_WEBHOOK_URL }}

0 commit comments

Comments
 (0)