cleanup #30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a basic workflow to help you get started with Actions | |
name: CI | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the "main" branch | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# Environment variables | |
env: | |
K8KREATOR_DEBUG: 1 | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "test" | |
test: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v3 | |
# Installation Tests | |
- name: Test self-install | |
run: | | |
curl -fsSL https://raw.githubusercontent.com/sepen/k8kreator/main/k8kreator | bash -s self install | |
export PATH=$HOME/.k8kreator/bin:$PATH | |
k8kreator version | |
- name: Test self-update | |
run: | | |
export PATH=$HOME/.k8kreator/bin:$PATH | |
k8kreator self-update | |
# all.kind.local | |
- name: Test cluster-create | |
run: | | |
export PATH=$HOME/.k8kreator/bin:$PATH | |
k8kreator cluster create -t all.kind.local | |
export KUBECONFIG=$HOME/.k8kreator/kubeconfig | |
kubectl version | |
- name: Test addons-install | |
run: | | |
export PATH=$HOME/.k8kreator/bin:$PATH | |
k8kreator addons install -t all.kind.local | |
- name: Test pods, services and ingresses | |
run: | | |
export PATH=$HOME/.k8kreator/bin:$PATH | |
export KUBECONFIG=$HOME/.k8kreator/kubeconfig | |
kubectl get pod -A | |
kubectl get svc -A | |
kubectl get ing -A | |
- name: Test addons-uninstall | |
run: | | |
export PATH=$HOME/.k8kreator/bin:$PATH | |
k8kreator addons uninstall -t all.kind.local | |
- name: Test cluster-delete | |
run: | | |
export PATH=$HOME/.k8kreator/bin:$PATH | |
k8kreator cluster delete -t all.kind.local | |
# all.k3d.local | |
- name: Test cluster-create | |
run: | | |
export PATH=$HOME/.k8kreator/bin:$PATH | |
k8kreator cluster create -t all.k3d.local | |
export KUBECONFIG=$HOME/.k8kreator/kubeconfig | |
kubectl version | |
- name: Test addons-install | |
run: | | |
export PATH=$HOME/.k8kreator/bin:$PATH | |
k8kreator addons install -t all.k3d.local | |
- name: Test pods, services and ingresses | |
run: | | |
export PATH=$HOME/.k8kreator/bin:$PATH | |
export KUBECONFIG=$HOME/.k8kreator/kubeconfig | |
kubectl get pod -A | |
kubectl get svc -A | |
kubectl get ing -A | |
- name: Test addons-uninstall | |
run: | | |
export PATH=$HOME/.k8kreator/bin:$PATH | |
k8kreator addons uninstall -t all.k3d.local | |
- name: Test cluster-delete | |
run: | | |
export PATH=$HOME/.k8kreator/bin:$PATH | |
k8kreator cluster delete -t all.k3d.local | |
# all.minikube.local | |
- name: Test cluster-create | |
run: | | |
export PATH=$HOME/.k8kreator/bin:$PATH | |
k8kreator cluster create -t all.minikube.local | |
export KUBECONFIG=$HOME/.k8kreator/kubeconfig | |
kubectl version | |
- name: Test addons-install | |
run: | | |
export PATH=$HOME/.k8kreator/bin:$PATH | |
k8kreator addons install -t all.minikube.local | |
- name: Test pods, services and ingresses | |
run: | | |
export PATH=$HOME/.k8kreator/bin:$PATH | |
export KUBECONFIG=$HOME/.k8kreator/kubeconfig | |
kubectl get pod -A | |
kubectl get svc -A | |
kubectl get ing -A | |
- name: Test addons-uninstall | |
run: | | |
export PATH=$HOME/.k8kreator/bin:$PATH | |
k8kreator addons uninstall -t all.minikube.local | |
- name: Test cluster-delete | |
run: | | |
export PATH=$HOME/.k8kreator/bin:$PATH | |
k8kreator cluster delete -t all.minikube.local |