-
Notifications
You must be signed in to change notification settings - Fork 5
92 lines (85 loc) · 2.9 KB
/
maven.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
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: CI build
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'ci:full') }}
jobs:
build:
runs-on: [ubuntu-latest]
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
jdk: ['17', '21']
distribution: ['temurin']
experimental: [false]
include:
- jdk: '23'
distribution: 'zulu'
experimental: true
- jdk: '24-ea'
distribution: 'zulu'
experimental: true
continue-on-error: ${{ matrix.experimental }}
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
show-progress: false
- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v4
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.jdk }}
- uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-${{ matrix.jdk }}_${{ matrix.distribution }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-${{ matrix.jdk }}_${{ matrix.distribution }}-maven-
- name: Build with Maven
run: mvn -B verify --file src/pom.xml
maven-enforcer:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
jdk: ['17']
distribution: ['temurin']
experimental: [false]
# include:
# - jdk: '21-ea'
# distribution: zulu
# experimental: true
continue-on-error: ${{ matrix.experimental }}
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
show-progress: false
- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v4
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.jdk }}
- uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-${{ matrix.jdk }}_${{ matrix.distribution }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-${{ matrix.jdk }}_${{ matrix.distribution }}-maven-
- name: maven-enforcer-plugin chec
run: |
mvn -B install --file src/pom.xml
mvn -B verify --file src/server-am/pom.xml -Pstrict
mvn -B verify --file src/server-cm/pom.xml -Pstrict
mvn -B verify --file src/server-qm/pom.xml -Pstrict
mvn -B verify --file src/server-rm/pom.xml -Pstrict