Add get and compare kafka cluster config #69
Workflow file for this run
This file contains hidden or 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
| name: E2E Tests | |
| on: | |
| push: | |
| branches: | |
| - 'release-*' | |
| pull_request: | |
| paths: | |
| - 'common/**' | |
| - 'strimzi-mcp/**' | |
| - 'systemtest/**' | |
| - 'dev/**' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| checks: write | |
| jobs: | |
| e2e-kind: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 45 | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| - name: Cache Maven packages | |
| uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 | |
| with: | |
| path: ~/.m2 | |
| key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: ${{ runner.os }}-m2 | |
| - name: Create kind cluster with registry | |
| uses: strimzi/github-actions/.github/actions/dependencies/setup-kind@v1 | |
| with: | |
| controlNodes: "1" | |
| workerNodes: "1" | |
| - name: Deploy Prometheus operator | |
| run: ./dev/scripts/setup-prometheus.sh deploy | |
| - name: Build MCP image and load into kind | |
| run: | | |
| ./mvnw package -pl common,metrics-prometheus,loki-log-provider,strimzi-mcp \ | |
| -DskipTests \ | |
| -Dquarkus.container-image.build=true \ | |
| -Dquarkus.container-image.tag=test | |
| kind load docker-image quay.io/streamshub/strimzi-mcp:test --name kind-cluster | |
| - name: Run system tests | |
| env: | |
| MCP_IMAGE: quay.io/streamshub/strimzi-mcp:test | |
| MCP_CONNECTIVITY: NODEPORT | |
| run: | | |
| ./mvnw verify -pl systemtest \ | |
| -Psystemtest | |
| - name: Generate Allure report | |
| if: always() | |
| run: npx allure generate systemtest/target/allure-results -o allure-report | |
| - name: Post Allure report to PR | |
| uses: allure-framework/allure-action@v0 | |
| if: always() && github.event_name == 'pull_request' | |
| with: | |
| report-directory: allure-report | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Upload Allure report | |
| uses: actions/upload-artifact@v7 | |
| if: always() | |
| with: | |
| name: allure-report | |
| path: allure-report/ | |
| - name: Upload test logs | |
| uses: actions/upload-artifact@v7 | |
| if: failure() | |
| with: | |
| name: test-logs | |
| path: systemtest/target/test-logs/ |