Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: add JDK 17 testing; run CI on all branches; cleanup ci.yml. #566

Merged
merged 2 commits into from
Jun 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 37 additions & 30 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ name: Java CI with Maven

on:
push:
branches: [ "master" ]
branches:
- '*'
pull_request:
branches: [ "master" ]
branches:
- '*'

jobs:

Expand All @@ -14,27 +16,23 @@ jobs:
timeout-minutes: 10
outputs:
SNAPSHOT_VERSION: ${{ steps.arq-version.outputs.SNAPSHOT_VERSION }}

steps:
- uses: actions/checkout@v4

- uses: actions/setup-java@v4
name: JDK 8 setup
- name: Checkout arquillian-core
uses: actions/checkout@v4
- name: Setup JDK 8
uses: actions/setup-java@v4
with:
java-version: 8
distribution: 'temurin'
distribution: temurin
cache: maven

- name: Build with Maven
run: mvn clean -B install

run: mvn --batch-mode --no-transfer-progress clean verify
- name: Version save
id: arq-version
run: |
VERSION=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)
echo "SNAPSHOT_VERSION=$VERSION" >> $GITHUB_OUTPUT
echo "Arquillian version: $VERSION"

- name: Artifact upload
uses: actions/upload-artifact@v4
with:
Expand All @@ -45,47 +43,56 @@ jobs:
name: Integration - JDK 11
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v4

- uses: actions/setup-java@v4
name: JDK 11 setup
- name: Build with Maven
uses: actions/checkout@v4
- name: Setup JDK 11
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'temurin'
distribution: temurin
cache: maven
- name: Build with Maven
run: mvn --batch-mode --no-transfer-progress clean verify

arquillian-build-jdk17:
name: Integration - JDK 17
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Build with Maven
uses: actions/checkout@v4
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
cache: maven
- name: Build with Maven
run: mvn clean -B install
run: mvn --batch-mode --no-transfer-progress clean verify

integration-wildfly-job:
runs-on: ubuntu-latest
name: Integration verification for WildFly
needs: arquillian-build-jdk8
timeout-minutes: 300

steps:
- uses: actions/checkout@v4

- uses: actions/download-artifact@v4
with:
name: arquillian
path: ~/.m2/repository/org/jboss

- uses: actions/setup-java@v4
name: JDK 17 setup
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
distribution: temurin
cache: maven

- uses: actions/checkout@v4
name: Checkout WildFly
- name: Checkout WildFly
uses: actions/checkout@v4
with:
repository: wildfly/wildfly

- name: WildFly integration
- name: Run WildFly Integration Testsuite
env:
SNAPSHOT_VERSION: ${{ needs.arquillian-build-jdk8.outputs.SNAPSHOT_VERSION }}
run: |
Expand Down