From c394f1c303d6ab4973c7cac79797e4ba14a8fed8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Fri, 20 Sep 2024 12:42:00 +0200 Subject: [PATCH] make CI: Set a correct broker version for CLI tests --- .github/workflows/test-make-target.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/test-make-target.yaml b/.github/workflows/test-make-target.yaml index 995bb8733d7..cf5a876bbe4 100644 --- a/.github/workflows/test-make-target.yaml +++ b/.github/workflows/test-make-target.yaml @@ -59,9 +59,17 @@ jobs: sudo aa-complain `which slapd` - name: RUN TESTS + if: inputs.plugin != 'rabbitmq_cli' run: | make -C deps/${{ inputs.plugin }} ${{ inputs.make_target }} RABBITMQ_METADATA_STORE=${{ inputs.metadata_store }} + # rabbitmq_cli needs a correct broker version for two of its tests. + # But setting PROJECT_VERSION makes other plugins fail. + - name: RUN TESTS (rabbitmq_cli) + if: inputs.plugin == 'rabbitmq_cli' + run: | + make -C deps/${{ inputs.plugin }} ${{ inputs.make_target }} RABBITMQ_METADATA_STORE=${{ inputs.metadata_store }} PROJECT_VERSION="$PROJECT_VERSION" + - name: UPLOAD TEST LOGS if: always() uses: actions/upload-artifact@v4