Skip to content

Commit

Permalink
add validations and install in macos
Browse files Browse the repository at this point in the history
  • Loading branch information
merlos committed Dec 22, 2023
1 parent cd4223d commit 600e22d
Showing 1 changed file with 77 additions and 5 deletions.
82 changes: 77 additions & 5 deletions .github/workflows/install-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,17 @@ jobs:
helm version
helm list
# Check new paths
whereis helm
whereis kubectl
# Tests if the script checks ok
- name: Test install-magasin.sh -
- 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
cd scripts/installer
Expand All @@ -70,12 +75,18 @@ jobs:
echo " count: 1" >> drill.yaml
# We use the local repo and we test that the prefix and postfix work
./install-magasin.sh -u http://localhost:8000 -r mgs-test
# For local inspection
kubeclt get pods --all-namespaces
# Validate all charts have been installed
helm list -n mgs-drill-test
helm list -n mgs-dagster-test
helm list -n mgs-daskhub-test
helm list -n mgs-superset-test
#
# UNINSTALLER tests GNU/Linux
#
Expand All @@ -85,11 +96,20 @@ jobs:
run: |
cd scripts/installer
./uninstall-magasin.sh -c
# Test if the script tests
- name: Test uninstall-magasin.sh -r mgs-test
run: |
cd scripts/installer
./uninstall-magasin.sh -r mgs-test
# namespaces should not exist anymore
kubectl get namespaces
#
# INSTALLER | MacOS
#
installer-on-macos:
tests-on-macos:
runs-on: macos-latest # Specifies the macOS runner
strategy:
# Keep running even if one variation of the job fail
Expand All @@ -103,6 +123,58 @@ 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
run: |
echo "kubeconfig: $KUBECONFIG"
kubectl version
kubectl get pods --all-namespaces
helm version
helm list

# Check new paths
whereis helm
whereis kubectl

# 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
cd scripts/installer
# We will test that yaml files overwrite
echo "drill: " > drill.yaml
echo " count: 1" >> drill.yaml
# We use the local repo and we test that the prefix and postfix work
./install-magasin.sh -u http://localhost:8000 -r mgs-test
# For local inspection
kubeclt get pods --all-namespaces
# Validate all charts have been installed
helm list -n mgs-drill-test
helm list -n mgs-dagster-test
helm list -n mgs-daskhub-test
helm list -n mgs-superset-test
# Test uninstall
- name: Test uninstall-magasin.sh -c
run: |
cd scripts/installer
Expand Down

0 comments on commit 600e22d

Please sign in to comment.