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

[WFLY-18502][WFLY-18498] adds USES_ARTEMIS & USES_KAFKA inputs which … #741

Closed
wants to merge 1 commit into from
Closed
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
44 changes: 41 additions & 3 deletions .github/workflows/quickstart_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ on:
required: false
default: true
type: boolean
USES_ARTEMIS:
description: 'if the quickstart needs ARTEMIS service'
required: false
default: false
type: boolean
USES_KAFKA:
description: 'if the quickstart needs KAFKA service'
required: false
default: false
type: boolean
SERVER_PROVISIONING_SERVER_HOST:
description: 'the server.host arg to be used when testing server provisioning with the mvn verify command'
required: false
Expand All @@ -34,15 +44,37 @@ concurrency:
cancel-in-progress: true

jobs:
Matrix-Setup:
runs-on: ubuntu-latest
outputs:
os: ${{ steps.setup-os-matrix.outputs.os }}
steps:
- id: setup-os-matrix
name: Determining which operating systems to run on
run: |
if ${{ inputs.USES_ARTEMIS }} || ${{ inputs.USES_KAFKA }};
then
echo "os=[\"ubuntu-latest\"]" >> $GITHUB_OUTPUT
else
echo "os=[\"ubuntu-latest\", \"windows-latest\"]" >> $GITHUB_OUTPUT
fi

Test-build-default-matrix:
name: BUILD DEFAULT - JDK${{ matrix.jdk }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
needs: Matrix-Setup
strategy:
fail-fast: false
matrix:
jdk: [11, 17]
os: [ubuntu-20.04, windows-latest]
os: ${{ fromJSON(needs.Matrix-Setup.outputs.os) }}
steps:
- name: Setup ARTEMIS
if: ${{ inputs.USES_ARTEMIS }}
run: docker run -d --name artemis -e AMQ_USER=admin -e AMQ_PASSWORD=admin -p8161:8161 -p61616:61616 -e AMQ_DATA_DIR=/home/jboss/data quay.io/artemiscloud/activemq-artemis-broker-kubernetes:artemis.2.31.0
- name: Setup KAFKA
if: ${{ inputs.USES_KAFKA }}
run: docker run -d -p 9092:9092 -e KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://localhost:9092 quay.io/ogunalp/kafka-native:0.5.0-kafka-3.6.0
- uses: actions/checkout@v4
with:
path: quickstarts
Expand Down Expand Up @@ -110,13 +142,19 @@ jobs:
Test-build-with-deps-matrix:
name: BUILD WITH DEPS - JDK${{ matrix.jdk }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
needs: WildFly-build
needs: [Matrix-Setup, WildFly-build]
strategy:
fail-fast: false
matrix:
jdk: [11, 17]
os: [ubuntu-20.04, windows-latest]
os: ${{ fromJSON(needs.Matrix-Setup.outputs.os) }}
steps:
- name: Setup ARTEMIS
if: ${{ inputs.USES_ARTEMIS }}
run: docker run -d --name artemis -e AMQ_USER=admin -e AMQ_PASSWORD=admin -p8161:8161 -p61616:61616 -e AMQ_DATA_DIR=/home/jboss/data quay.io/artemiscloud/activemq-artemis-broker-kubernetes:artemis.2.31.0
- name: Setup KAFKA
if: ${{ inputs.USES_KAFKA }}
run: docker run -d -p 9092:9092 -e KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://localhost:9092 quay.io/ogunalp/kafka-native:0.5.0-kafka-3.6.0
- uses: actions/checkout@v4
with:
path: quickstarts
Expand Down