@@ -2,9 +2,11 @@ name: Java CI with Maven
2
2
3
3
on :
4
4
push :
5
- branches : [ "master" ]
5
+ branches :
6
+ - ' *'
6
7
pull_request :
7
- branches : [ "master" ]
8
+ branches :
9
+ - ' *'
8
10
9
11
jobs :
10
12
@@ -14,27 +16,23 @@ jobs:
14
16
timeout-minutes : 10
15
17
outputs :
16
18
SNAPSHOT_VERSION : ${{ steps.arq-version.outputs.SNAPSHOT_VERSION }}
17
-
18
19
steps :
19
- - uses : actions/checkout@v4
20
-
21
- - uses : actions/setup-java@v4
22
- name : JDK 8 setup
20
+ - name : Checkout arquillian-core
21
+ uses : actions/checkout@v4
22
+ - name : Setup JDK 8
23
+ uses : actions/ setup-java@v4
23
24
with :
24
25
java-version : 8
25
- distribution : ' temurin'
26
+ distribution : temurin
26
27
cache : maven
27
-
28
28
- name : Build with Maven
29
- run : mvn clean -B install
30
-
29
+ run : mvn --batch-mode --no-transfer-progress clean verify
31
30
- name : Version save
32
31
id : arq-version
33
32
run : |
34
33
VERSION=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)
35
34
echo "SNAPSHOT_VERSION=$VERSION" >> $GITHUB_OUTPUT
36
35
echo "Arquillian version: $VERSION"
37
-
38
36
- name : Artifact upload
39
37
uses : actions/upload-artifact@v4
40
38
with :
@@ -45,47 +43,56 @@ jobs:
45
43
name : Integration - JDK 11
46
44
runs-on : ubuntu-latest
47
45
timeout-minutes : 10
48
-
49
46
steps :
50
- - uses : actions/checkout@v4
51
-
52
- - uses : actions/setup-java@v4
53
- name : JDK 11 setup
47
+ - name : Build with Maven
48
+ uses : actions/checkout@v4
49
+ - name : Setup JDK 11
50
+ uses : actions/ setup-java@v4
54
51
with :
55
52
java-version : 11
56
- distribution : ' temurin'
53
+ distribution : temurin
57
54
cache : maven
55
+ - name : Build with Maven
56
+ run : mvn --batch-mode --no-transfer-progress clean verify
58
57
58
+ arquillian-build-jdk17 :
59
+ name : Integration - JDK 17
60
+ runs-on : ubuntu-latest
61
+ timeout-minutes : 10
62
+ steps :
63
+ - name : Build with Maven
64
+ uses : actions/checkout@v4
65
+ - name : Setup JDK 17
66
+ uses : actions/setup-java@v4
67
+ with :
68
+ java-version : 17
69
+ distribution : temurin
70
+ cache : maven
59
71
- name : Build with Maven
60
- run : mvn clean -B install
72
+ run : mvn --batch-mode --no-transfer-progress clean verify
61
73
62
74
integration-wildfly-job :
63
75
runs-on : ubuntu-latest
64
76
name : Integration verification for WildFly
65
77
needs : arquillian-build-jdk8
66
78
timeout-minutes : 300
67
-
68
79
steps :
69
80
- uses : actions/checkout@v4
70
-
71
81
- uses : actions/download-artifact@v4
72
82
with :
73
83
name : arquillian
74
84
path : ~/.m2/repository/org/jboss
75
-
76
- - uses : actions/setup-java@v4
77
- name : JDK 17 setup
85
+ - name : Setup JDK 17
86
+ uses : actions/setup-java@v4
78
87
with :
79
88
java-version : 17
80
- distribution : ' temurin'
89
+ distribution : temurin
81
90
cache : maven
82
-
83
- - uses : actions/checkout@v4
84
- name : Checkout WildFly
91
+ - name : Checkout WildFly
92
+ uses : actions/checkout@v4
85
93
with :
86
94
repository : wildfly/wildfly
87
-
88
- - name : WildFly integration
95
+ - name : Run WildFly Integration Testsuite
89
96
env :
90
97
SNAPSHOT_VERSION : ${{ needs.arquillian-build-jdk8.outputs.SNAPSHOT_VERSION }}
91
98
run : |
0 commit comments