diff --git a/.github/workflows/test_edge_case.yml b/.github/workflows/test_edge_case.yml index e89c99d..b4b1ab0 100644 --- a/.github/workflows/test_edge_case.yml +++ b/.github/workflows/test_edge_case.yml @@ -12,7 +12,7 @@ on: - 'releases/*' jobs: - # test local cluster without prometheus grafana + # folder exists should not blocking process test_local_cluster_withEdgeCase_folder_exists: runs-on: ubuntu-latest steps: @@ -20,25 +20,40 @@ jobs: - name: start from local run: | mkdir -p /tmp/kubeconfig - export PROMETHEUS_ENABLE=true export CLUSTER_PROVIDER=kind - export TEKTON_ENABLE=true export CLUSTER_CONFIG=false ./main.sh up + - name: test as kepler action behavior + run: | + mkdir -p /tmp/kubeconfig + cp .kube/config /tmp/kubeconfig + export PROMETHEUS_ENABLE=true + export TEKTON_ENABLE=true export KUBECONFIG_ROOT_DIR=/tmp/kubeconfig ./main.sh config + - name: verify cluster + run: | + ./verify.sh verify_cluster test_local_cluster_withEdgeCase_file_exists: + # file exists should not blocking process runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: start from local run: | echo 1 > /tmp/kubeconfig - export PROMETHEUS_ENABLE=true export CLUSTER_PROVIDER=kind - export TEKTON_ENABLE=true export CLUSTER_CONFIG=false ./main.sh up + - name: test as kepler action behavior + run: | + mkdir -p /tmp/kubeconfig + cp .kube/config /tmp/kubeconfig + export PROMETHEUS_ENABLE=true + export TEKTON_ENABLE=true export KUBECONFIG_ROOT_DIR=/tmp/kubeconfig ./main.sh config + - name: verify cluster + run: | + ./verify.sh verify_cluster \ No newline at end of file