Build operator dependencies first before testing it

Closes #11641
This commit is contained in:
Alexander Schwartz 2022-04-25 09:48:07 +02:00 committed by Bruno Oliveira da Silva
parent 6156272f39
commit 8fe263e7b3

View file

@ -79,9 +79,8 @@ jobs:
(cd operator && ./scripts/build-testing-docker-images.sh ${{ steps.vars.outputs.version }} keycloak custom-keycloak) (cd operator && ./scripts/build-testing-docker-images.sh ${{ steps.vars.outputs.version }} keycloak custom-keycloak)
- name: Test operator running locally - name: Test operator running locally
working-directory: operator
run: | run: |
mvn clean verify \ mvn -Poperator -pl operator -am clean verify \
-Dquarkus.kubernetes.deployment-target=kubernetes \ -Dquarkus.kubernetes.deployment-target=kubernetes \
-Doperator.keycloak.image=keycloak:${{ steps.vars.outputs.version }} \ -Doperator.keycloak.image=keycloak:${{ steps.vars.outputs.version }} \
-Dtest.operator.custom.image=custom-keycloak:${{ steps.vars.outputs.version }} \ -Dtest.operator.custom.image=custom-keycloak:${{ steps.vars.outputs.version }} \
@ -125,10 +124,9 @@ jobs:
(cd operator && ./scripts/build-testing-docker-images.sh ${{ steps.vars.outputs.version }} keycloak custom-keycloak) (cd operator && ./scripts/build-testing-docker-images.sh ${{ steps.vars.outputs.version }} keycloak custom-keycloak)
- name: Test operator running in cluster - name: Test operator running in cluster
working-directory: operator
run: | run: |
eval $(minikube -p minikube docker-env) eval $(minikube -p minikube docker-env)
mvn clean verify \ mvn -Poperator -pl operator -am clean verify \
-Dquarkus.container-image.build=true \ -Dquarkus.container-image.build=true \
-Dquarkus.kubernetes.deployment-target=kubernetes \ -Dquarkus.kubernetes.deployment-target=kubernetes \
-Doperator.keycloak.image=keycloak:${{ steps.vars.outputs.version }} \ -Doperator.keycloak.image=keycloak:${{ steps.vars.outputs.version }} \