Skip to content

Add Netty dep - needed for WebSocket client. #20

Add Netty dep - needed for WebSocket client.

Add Netty dep - needed for WebSocket client. #20

name: HiveMQ Operator (Legacy) Integration Tests
on:
push:
branches:
- "**"
workflow_dispatch:
concurrency:
group: hivemq-operator-legacy-integration-test-${{ github.ref }}
cancel-in-progress: true
jobs:
legacy-integration-test:
runs-on: ubuntu-latest
timeout-minutes: 25
permissions:
contents: read
packages: write
strategy:
fail-fast: false
matrix:
test-plan: [ K8sVersionCompatibility, Extensions, RollingUpgrades, Other ]
steps:
- uses: actions/checkout@v3
with:
path: helm-charts
- name: Set up Docker QEMU
uses: docker/setup-qemu-action@v2
- name: Login to Container Registry
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Checkout HiveMQ Operator (legacy) on the default branch
uses: actions/checkout@v3
with:
repository: hivemq/hivemq-operator
token: ${{ secrets.JENKINS_TOKEN }}
path: hivemq-operator
- name: Checkout HiveMQ Operator (legacy) on the same branch
run: |
echo "Checking if branch \"${GITHUB_REF_NAME}\" exists on hivemq-operator"
cd hivemq-operator
BRANCH=$(git ls-remote origin ${GITHUB_REF_NAME})
if [[ -n "${BRANCH}" ]]; then
echo "Checking out branch with the same name"
git fetch --all
git checkout origin/${GITHUB_REF_NAME}
fi
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Run HiveMQ Operator (legacy) integration tests
uses: gradle/gradle-build-action@v2
env:
TEST_PLAN: ${{ matrix.test-plan }}
with:
cache-disabled: true
gradle-home-cache-includes: |
caches
notifications
jdks
gradle-home-cache-cleanup: true
build-root-directory: helm-charts
arguments: |
:tests-hivemq-operator:integrationTest
- name: Upload HiveMQ Operator (legacy) test results
if: always()
uses: actions/upload-artifact@v3
with:
name: Test results HiveMQ Operator (legacy) ${{ matrix.test-plan }}
path: |
helm-charts/tests-hivemq-operator/build/reports/tests/integrationTest/
helm-charts/tests-hivemq-operator/build/test-results/integrationTest/*.xml
retention-days: 5