Skip to content

Add edge case check

Add edge case check #1

Workflow file for this run

name: "units-test-edge"
on:
# works for mannual, in case of github agent updated.
# we can run mannually to see if it can be fixed by update version of
# - kubectl
# - k8s cluster provider's
workflow_dispatch:
pull_request:
push:
branches:
- main
- 'releases/*'
jobs:
# test local cluster without prometheus grafana
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 PROMETHEUS_OPERATOR_VERSION=v0.13.0
export GRAFANA_ENABLE=true
export CLUSTER_PROVIDER=kind
export TEKTON_ENABLE=true
export LOADPROMETHEUSIMAGE=true
./main.sh up
test_local_cluster_withEdgeCase_file_exists:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: start from local
run: |
echo 1 > /tmp/kubeconfig
export PROMETHEUS_ENABLE=true
export PROMETHEUS_OPERATOR_VERSION=v0.13.0
export GRAFANA_ENABLE=true
export CLUSTER_PROVIDER=kind
export TEKTON_ENABLE=true
export LOADPROMETHEUSIMAGE=true
./main.sh up
test_local_cluster_withEdgeCase_file_wrong_env:

Check failure on line 46 in .github/workflows/test_edge_case.yml

View workflow run for this annotation

GitHub Actions / units-test-edge

Invalid workflow file

The workflow is not valid. .github/workflows/test_edge_case.yml (Line: 46, Col: 1): Unexpected value 'test_local_cluster_withEdgeCase_file_wrong_env'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: start from local
run: |
export KIND_DIR=/tmp
export PROMETHEUS_ENABLE=true
export PROMETHEUS_OPERATOR_VERSION=v0.13.0
export GRAFANA_ENABLE=true
export CLUSTER_PROVIDER=kind
export TEKTON_ENABLE=true
export LOADPROMETHEUSIMAGE=true
./main.sh up