-
Notifications
You must be signed in to change notification settings - Fork 1
108 lines (98 loc) · 3.39 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# 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: Build RESTEasy Development Tools
on:
push:
branches:
- 'main'
paths:
- '.github/workflows/maven.yml'
- '**/pom.xml'
- 'ide-config/**'
- 'parent-pom/**'
- 'resteasy-checkstyle-config/**'
pull_request:
branches:
- '**'
paths:
- '.github/workflows/maven.yml'
- '**/pom.xml'
- 'ide-config/**'
- 'parent-pom/**'
- 'resteasy-checkstyle-config/**'
# Only run the latest job
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v4
with:
path: resteasy-dev-tools
- name: Set up JDKs
uses: actions/setup-java@v4
with:
java-version: |
11
17
21
distribution: 'temurin'
architecture: x64
cache: 'maven'
- name: Install the snapshot
run: |
cd resteasy-dev-tools
mvn -B -ntp install
- name: Check out RESTEasy Guice
uses: actions/checkout@v4
with:
repository: resteasy/resteasy-guice
path: resteasy-guice
- name: Test RESTEasy Guice with updated parent
run: |
cd resteasy-guice
mvn -B -ntp versions:update-parent -DallowSnapshots=true -N
git diff pom.xml
mvn -B -ntp install -Djava11.home=${{env.JAVA_HOME_11_X64}} -Djava17.home=${{env.JAVA_HOME_17_X64}}
- name: Check out RESTEasy MicroProfile
uses: actions/checkout@v4
with:
repository: resteasy/resteasy-microprofile
path: resteasy-microprofile
- name: Test RESTEasy MicroProfile with updated parent
run: |
cd resteasy-microprofile
mvn -B -ntp versions:update-parent -DallowSnapshots=true -N
git diff pom.xml
mvn -B -ntp install -Djava11.home=${{env.JAVA_HOME_11_X64}} -Djava17.home=${{env.JAVA_HOME_17_X64}}
- name: Check out RESTEasy
uses: actions/checkout@v4
with:
repository: resteasy/resteasy
path: resteasy
- name: Test RESTEasy with updated parent
run: |
cd resteasy/resteasy-bom
mvn -B -ntp versions:update-parent -DallowSnapshots=true -N
mvn clean install
cd ../resteasy-dependencies-bom
mvn -B -ntp versions:update-parent -DallowSnapshots=true -N
mvn clean install
cd ..
mvn -B -ntp versions:update-parent -DallowSnapshots=true -N
git diff pom.xml
mvn -B -ntp install -Djava11.home=${{env.JAVA_HOME_11_X64}} -Djava17.home=${{env.JAVA_HOME_17_X64}}
- name: Check out RESTEasy RxJava
uses: actions/checkout@v4
with:
repository: resteasy/resteasy-rxjava
path: resteasy-rxjava
- name: Test RESTEasy RxJava with updated parent
run: |
cd resteasy-rxjava
mvn -B -ntp versions:update-parent -DallowSnapshots=true -N
git diff pom.xml
mvn -B -ntp install -Djava11.home=${{env.JAVA_HOME_11_X64}} -Djava17.home=${{env.JAVA_HOME_17_X64}}