From 17e3485b869ff5d4d1dff1477a292a886c19aa30 Mon Sep 17 00:00:00 2001 From: merlos <404446+merlos@users.noreply.github.com> Date: Fri, 22 Dec 2023 12:37:01 +0300 Subject: [PATCH] fix local-helm-repo launch and in macos install kind --- .github/workflows/install-tests.yml | 47 ++++++++++++----------------- 1 file changed, 19 insertions(+), 28 deletions(-) diff --git a/.github/workflows/install-tests.yml b/.github/workflows/install-tests.yml index cb3cea1..e93c2a2 100644 --- a/.github/workflows/install-tests.yml +++ b/.github/workflows/install-tests.yml @@ -64,10 +64,14 @@ jobs: # Tests if the script checks ok - name: Test install-magasin.sh run: | - # We need to run the local helm repo in background - ./dev-scripts/local-helm-repo.sh & - # Now we install + # We run a local helm repo in background + pwd + cd dev-scripts + local-helm-repo.sh & + cd .. + + # Now we install magasin cd scripts/installer # We will test that yaml files overwrite @@ -102,7 +106,7 @@ jobs: run: | cd scripts/installer ./uninstall-magasin.sh -r mgs-test - + # namespaces should not exist anymore kubectl get namespaces @@ -123,39 +127,26 @@ jobs: cd scripts/installer zsh ./install-magasin.sh -c - # Install a k3s cluster - # This action also installs helm.. - - name: Start a local k8s cluster - uses: jupyterhub/action-k3s-helm@v3 - with: - k3s-channel: latest - metrics-enabled: false - traefik-enabled: false - docker-enabled: false - - - name: Verify function of k8s, kubectl, and helm + - name: Install kind k8s cluster run: | - echo "kubeconfig: $KUBECONFIG" - kubectl version - kubectl get pods --all-namespaces - - helm version - helm list - - # Check new paths - whereis helm - whereis kubectl + brew install kind + kind create cluster + kubectl cluster-info --context kind-kind # Tests if the script checks ok - name: Test install-magasin.sh run: | + # We need to run the local helm repo in background - ./dev-scripts/local-helm-repo.sh & + # this has the current branch repo + pwd + cd dev-scripts + cd local-helm-repo.sh & - # Now we install + # Go to installe forlder cd scripts/installer - # We will test that yaml files overwrite + # Test that yaml files overwrite the values echo "drill: " > drill.yaml echo " count: 1" >> drill.yaml