generated from actions/javascript-action
-
Notifications
You must be signed in to change notification settings - Fork 6
55 lines (54 loc) · 1.43 KB
/
testEdge.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: units-test-edge
on: # yamllint disable-line rule:truthy
workflow_call:
jobs:
test_existing_cluster_with_existing_file:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# set up an existing_file
- name: prepare test case
run: |
echo 1 > /tmp/kubeconfig
# set up k8s cluster
- uses: ./
name: dummy cluster for test
with:
cluster_provider: kind
config_cluster: false
# config cluster
- uses: ./
name: config cluster
with:
cluster_provider: existing
prometheus_enable: true
tekton_enable: true
- name: verify
run: |
./verify.sh cluster
test_cutsomer_cluster_with_cutsomer_config_file:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# set up k8s cluster
- uses: ./
name: dummy cluster for test
with:
cluster_provider: kind
config_cluster: false
# customer config file
- name: verify
run: |
mv /tmp/kubeconfig /tmp/testconfig
# config cluster
- uses: ./
name: config cluster
with:
cluster_provider: existing
prometheus_enable: true
tekton_enable: true
kubeconfig_root_dir: /tmp/testconfig
- name: verify
run: |
mv /tmp/testconfig /tmp/kubeconfig
./verify.sh cluster