Skip to content

Commit 439528c

Browse files
rhusarstarksm64
andauthored
CI: add JDK 17 testing; run CI on all branches; cleanup ci.yml. (#566)
Co-authored-by: Scott M Stark <[email protected]>
1 parent 5bed6db commit 439528c

File tree

1 file changed

+37
-30
lines changed

1 file changed

+37
-30
lines changed

.github/workflows/ci.yml

Lines changed: 37 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ name: Java CI with Maven
22

33
on:
44
push:
5-
branches: [ "master" ]
5+
branches:
6+
- '*'
67
pull_request:
7-
branches: [ "master" ]
8+
branches:
9+
- '*'
810

911
jobs:
1012

@@ -14,27 +16,23 @@ jobs:
1416
timeout-minutes: 10
1517
outputs:
1618
SNAPSHOT_VERSION: ${{ steps.arq-version.outputs.SNAPSHOT_VERSION }}
17-
1819
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
2324
with:
2425
java-version: 8
25-
distribution: 'temurin'
26+
distribution: temurin
2627
cache: maven
27-
2828
- name: Build with Maven
29-
run: mvn clean -B install
30-
29+
run: mvn --batch-mode --no-transfer-progress clean verify
3130
- name: Version save
3231
id: arq-version
3332
run: |
3433
VERSION=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)
3534
echo "SNAPSHOT_VERSION=$VERSION" >> $GITHUB_OUTPUT
3635
echo "Arquillian version: $VERSION"
37-
3836
- name: Artifact upload
3937
uses: actions/upload-artifact@v4
4038
with:
@@ -45,47 +43,56 @@ jobs:
4543
name: Integration - JDK 11
4644
runs-on: ubuntu-latest
4745
timeout-minutes: 10
48-
4946
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
5451
with:
5552
java-version: 11
56-
distribution: 'temurin'
53+
distribution: temurin
5754
cache: maven
55+
- name: Build with Maven
56+
run: mvn --batch-mode --no-transfer-progress clean verify
5857

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
5971
- name: Build with Maven
60-
run: mvn clean -B install
72+
run: mvn --batch-mode --no-transfer-progress clean verify
6173

6274
integration-wildfly-job:
6375
runs-on: ubuntu-latest
6476
name: Integration verification for WildFly
6577
needs: arquillian-build-jdk8
6678
timeout-minutes: 300
67-
6879
steps:
6980
- uses: actions/checkout@v4
70-
7181
- uses: actions/download-artifact@v4
7282
with:
7383
name: arquillian
7484
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
7887
with:
7988
java-version: 17
80-
distribution: 'temurin'
89+
distribution: temurin
8190
cache: maven
82-
83-
- uses: actions/checkout@v4
84-
name: Checkout WildFly
91+
- name: Checkout WildFly
92+
uses: actions/checkout@v4
8593
with:
8694
repository: wildfly/wildfly
87-
88-
- name: WildFly integration
95+
- name: Run WildFly Integration Testsuite
8996
env:
9097
SNAPSHOT_VERSION: ${{ needs.arquillian-build-jdk8.outputs.SNAPSHOT_VERSION }}
9198
run: |

0 commit comments

Comments
 (0)