-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[issues-311] - Add a GitHub workflow to run the tests manually
- Loading branch information
Showing
2 changed files
with
144 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
name: WildFly Integration Tests (Bootable JAR) - Manual execution | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
wildfly-jar-maven-plugin-version: | ||
description: 'The WildFly JAR Maven (Bootable JAR) plugin version that will be used when running the tests' | ||
required: false | ||
default: "" | ||
type: string | ||
build-wildFly: | ||
description: 'Whether to build a custom WildFly snapshot to run the tests with' | ||
required: true | ||
default: false | ||
type: boolean | ||
wildFly-repo: | ||
description: 'The WildFly repository that will be used to build the snapshot from' | ||
required: false | ||
default: "wildfly/wildfly" | ||
type: string | ||
wildFly-ref: | ||
description: 'The WildFly branch that will be used to build the snapshot from' | ||
required: false | ||
default: "main" | ||
type: string | ||
|
||
jobs: | ||
wildfly-it-tests-manual-bootable: | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 60 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ['ubuntu-latest', 'windows-latest'] | ||
java-version: ['17', '21'] | ||
java-distribution: ['adopt'] | ||
steps: | ||
- name: Checkout and build WildFly | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: '${{ inputs.wildFly-repo }}' | ||
ref: '${{ inputs.wildFly-ref }}' | ||
path: 'local-wildfly' | ||
if: '${{ inputs.build-wildFly }}' | ||
- name: Build WildFly | ||
if: '${{ inputs.build-wildFly }}' | ||
run: cd local-wildfly ; mvn clean install -DskipTests --batch-mode; cd .. | ||
- name: Set the value for the ENV VAR that stores the WildFly snapshot distribution location | ||
run: | | ||
echo "MAVEN_ARGS_WILDFLY_DIST=-Djboss.dist=local-wildfly/dist" >> "$GITHUB_ENV" | ||
if: '${{ inputs.build-wildFly }}' | ||
- name: Set the value for the WIldFly JAR (Bootable JAR) Maven plugin version | ||
run: | | ||
echo "MAVEN_ARGS_WILDFLY_JAR_MAVEN_PLUGIN_VERSION=${{ inputs.wildfly-jar-maven-plugin-version }}" | ||
if: '${{ ! inputs.wildfly-jar-maven-plugin-version == '' }}' | ||
- name: Checkout eap-microprofile-test-suite | ||
uses: actions/checkout@v4 | ||
- name: Set up JDK ${{ matrix.java-distribution }} ${{ matrix.java-version }} | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: ${{ matrix.java-version }} | ||
distribution: ${{ matrix.java-distribution }} | ||
cache: 'maven' | ||
- name: Build and run integration tests (${{ matrix.java-distribution }} ${{ matrix.java-version }}) against latest WildFly, on ${{ matrix.os }} | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
run: mvn clean verify --batch-mode -fae | ||
- name: Build and run integration tests (${{ matrix.java-distribution }} ${{ matrix.java-version }}) against latest WildFly, on ${{ matrix.os }} (excluding Docker) | ||
if: ${{ matrix.os == 'windows-latest' }} | ||
run: mvn clean verify --batch-mode -fae "-Dcurrent-execution.excluded-groups=org.jboss.eap.qe.ts.common.docker.junit.DockerRequiredTests" | ||
- uses: actions/upload-artifact@v4 | ||
if: failure() | ||
with: | ||
name: surefire-reports-server-logs-jdk-${{ matrix.java-distribution }}-${{ matrix.java-version }} | ||
path: | | ||
**/target/surefire-reports/* | ||
**/standalone/log/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: WildFly Integration Tests - Manual execution | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
wildfly-jar-maven-plugin-version: | ||
build-wildFly: | ||
description: 'Whether to build a custom WildFly snapshot to run the tests with' | ||
required: true | ||
default: false | ||
type: boolean | ||
wildFly-repo: | ||
description: 'The WildFly repository that will be used to build the snapshot from' | ||
required: false | ||
default: "wildfly/wildfly" | ||
type: string | ||
wildFly-ref: | ||
description: 'The WildFly branch that will be used to build the snapshot from' | ||
required: false | ||
default: "main" | ||
type: string | ||
|
||
jobs: | ||
wildfly-it-tests-manual: | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 60 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ['ubuntu-latest', 'windows-latest'] | ||
java-version: ['17', '21'] | ||
java-distribution: ['adopt'] | ||
steps: | ||
- name: Checkout and build WildFly | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: '${{ inputs.wildFly-repo }}' | ||
ref: '${{ inputs.wildFly-ref }}' | ||
path: 'local-wildfly' | ||
if: '${{ inputs.build-wildFly }}' | ||
- name: Build WildFly | ||
if: '${{ inputs.build-wildFly }}' | ||
run: cd local-wildfly ; mvn clean install -DskipTests --batch-mode; cd .. | ||
- name: Set the value for the ENV VAR that stores the WildFly snapshot distribution location | ||
run: | | ||
echo "MAVEN_ARGS_WILDFLY_DIST=-Djboss.dist=local-wildfly/dist" >> "$GITHUB_ENV" | ||
if: '${{ inputs.build-wildFly }}' | ||
- name: Checkout eap-microprofile-test-suite | ||
uses: actions/checkout@v4 | ||
- name: Set up JDK ${{ matrix.java-distribution }} ${{ matrix.java-version }} | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: ${{ matrix.java-version }} | ||
distribution: ${{ matrix.java-distribution }} | ||
cache: 'maven' | ||
- name: Build and run integration tests (${{ matrix.java-distribution }} ${{ matrix.java-version }}) against latest WildFly, on ${{ matrix.os }} | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
run: mvn clean verify --batch-mode -fae | ||
- name: Build and run integration tests (${{ matrix.java-distribution }} ${{ matrix.java-version }}) against latest WildFly, on ${{ matrix.os }} (excluding Docker) | ||
if: ${{ matrix.os == 'windows-latest' }} | ||
run: mvn clean verify --batch-mode -fae "-Dcurrent-execution.excluded-groups=org.jboss.eap.qe.ts.common.docker.junit.DockerRequiredTests" | ||
- uses: actions/upload-artifact@v4 | ||
if: failure() | ||
with: | ||
name: surefire-reports-server-logs-jdk-${{ matrix.java-distribution }}-${{ matrix.java-version }} | ||
path: | | ||
**/target/surefire-reports/* | ||
**/standalone/log/* |