Skip to content

Commit

Permalink
fix local-helm-repo launch and in macos install kind
Browse files Browse the repository at this point in the history
  • Loading branch information
merlos committed Dec 22, 2023
1 parent 3a23d35 commit 17e3485
Showing 1 changed file with 19 additions and 28 deletions.
47 changes: 19 additions & 28 deletions .github/workflows/install-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -102,7 +106,7 @@ jobs:
run: |
cd scripts/installer
./uninstall-magasin.sh -r mgs-test
# namespaces should not exist anymore
kubectl get namespaces
Expand All @@ -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
Expand Down

0 comments on commit 17e3485

Please sign in to comment.