-
Notifications
You must be signed in to change notification settings - Fork 56
50 lines (43 loc) · 1.1 KB
/
build.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
name: JBoss Parent CI Build
on:
push:
branches:
- main
paths-ignore:
- '.gitignore'
- 'LICENSE'
- 'NOTICE'
- 'README*'
pull_request:
jobs:
build:
runs-on: ubuntu-latest
name: build
steps:
- name: Check out project
uses: actions/checkout@v2
with:
path: jboss-parent-pom
- name: Set up the JDKs
uses: actions/setup-java@v3
with:
distribution: temurin
architecture: x64
java-version: |
11
17
- name: Install the parent POM snapshot
run: |
cd jboss-parent-pom
mvn -B -ntp formatter:validate install
- name: Check out WildFly Common
uses: actions/checkout@v2
with:
repository: wildfly/wildfly-common
path: wildfly-common
- name: Test WildFly Common with updated parent
run: |
cd wildfly-common
mvn -B -ntp versions:update-parent -DallowSnapshots=true -N
git diff pom.xml
mvn -B -ntp install -Djava11.home=${{env.JAVA_HOME_11_X64}}