diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 324e7ae7..d7f156ea 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -64,3 +64,21 @@ jobs: - name: Print workflow handler log run: bash -c "kubectl logs -n galaxy $(kubectl -n galaxy get pods | grep -o '[^ ]*galaxy-workflow[^ ]*')" if: always() + - name: Print service info + run: kubectl get svc -n galaxy + if: always() + - name: Print nginx service info + run: kubectl describe svc -n galaxy galaxy-nginx + if: always() + - name: Check appVersion + if: always() + run: | + appVersion=$(cat galaxy/Chart.yaml | grep ^appVersion: | awk '{print $2}' | tr -d '"') + address=$(kubectl get svc -n galaxy galaxy-nginx -o jsonpath="http://{.spec.clusterIP}:{.spec.ports[0].port}/galaxy/api/version") + echo "Address is $address" + apiVersion=$(curl $address | jq -r '"\(.version_major).\(.version_minor)"') + echo "appVersion: $appVersion" + echo "apiVersion: $apiVersion" + if [ "$appVersion" != "$apiVersion" ]; then + exit 1 + fi