Skip to content

Commit

Permalink
[ARQ-2232] Migrate CI to Github Actions (#545)
Browse files Browse the repository at this point in the history
  • Loading branch information
petrberan authored Apr 4, 2024
1 parent 94c40fc commit 2bc6e1c
Showing 1 changed file with 93 additions and 0 deletions.
93 changes: 93 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
name: Java CI with Maven

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:

arquillian-build-jdk8:
name: Integration - JDK 8
runs-on: ubuntu-latest
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
with:
java-version: 8
distribution: 'temurin'
cache: maven

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

- 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:
name: arquillian
path: ~/.m2/repository/org/jboss/

arquillian-build-jdk11:
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
with:
java-version: 11
distribution: 'temurin'
cache: maven

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

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
with:
java-version: 17
distribution: 'temurin'
cache: maven

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

- name: WildFly integration
env:
SNAPSHOT_VERSION: ${{ needs.arquillian-build-jdk8.outputs.SNAPSHOT_VERSION }}
run: |
mvn clean install -Dquickly -Dversion.org.jboss.arquillian.core="$SNAPSHOT_VERSION"
mvn clean verify -f testsuite/integration -DallTests -Dversion.org.jboss.arquillian.core="$SNAPSHOT_VERSION"

0 comments on commit 2bc6e1c

Please sign in to comment.