Skip to content

Commit

Permalink
fix up
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Yuan <[email protected]>
  • Loading branch information
SamYuan1990 committed Oct 6, 2024
1 parent 8e164c4 commit e716399
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/test_edge_case.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,33 +12,48 @@ 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:
- uses: actions/checkout@v3
- 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

0 comments on commit e716399

Please sign in to comment.