Add Kafka 4.3.1 #118
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: Build | |
| on: | |
| push: | |
| branches: | |
| - "main" | |
| - "release-*" | |
| pull_request: | |
| branches: | |
| - "*" | |
| # Declare default permissions as read only | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-test-container: | |
| name: Build & Test Test-Container | |
| strategy: | |
| matrix: | |
| java: | |
| - version: "11" | |
| mainBuild: false | |
| - version: "17" | |
| mainBuild: true | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Java and Maven | |
| uses: strimzi/github-actions/.github/actions/dependencies/setup-java@v1 | |
| with: | |
| javaVersion: ${{ matrix.java.version }} | |
| # On release branches, skip ITs and run only unit tests and mutation testing. | |
| # ITs cannot run here because release candidates use -rc1 suffix tags | |
| # and inside the repo we are always preparing GA version without the suffix | |
| # that may not have published container images yet. | |
| - name: Build binaries using build-binaries action | |
| uses: strimzi/github-actions/.github/actions/build/build-binaries@v1 | |
| with: | |
| mainJavaBuild: ${{ matrix.java.mainBuild }} | |
| artifactSuffix: "strimzi-test-container" | |
| clusterOperatorBuild: "false" | |
| env: | |
| MVN_ARGS: ${{ startsWith(github.ref, 'refs/heads/release-') && '-B -DskipITs' || '' }} | |
| deploy-java: | |
| name: Deploy Java artifacts to Maven Central | |
| needs: | |
| - build-test-container | |
| if: ${{ github.ref == 'refs/heads/main' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: strimzi/github-actions/.github/actions/dependencies/setup-java@v1 | |
| with: | |
| javaVersion: "17" | |
| - uses: strimzi/github-actions/.github/actions/build/deploy-java@v1 | |
| with: | |
| gpgPassphrase: ${{ secrets.GPG_PASSPHRASE }} | |
| gpgSigningKey: ${{ secrets.GPG_SIGNING_KEY }} | |
| centralUsername: ${{ secrets.CENTRAL_USERNAME }} | |
| centralPassword: ${{ secrets.CENTRAL_PASSWORD }} | |
| modules: "./" |