File tree 1 file changed +22
-11
lines changed
1 file changed +22
-11
lines changed Original file line number Diff line number Diff line change 9
9
pull_request :
10
10
workflow_dispatch :
11
11
inputs :
12
- destroy-cluster :
13
- description : ' Destroy test cluster'
14
- required : false
15
- default : true
16
- type : boolean
17
- python-version :
18
- description : ' Python version to install'
19
- required : false
20
- default : ' 3.12'
21
12
kind-version :
22
13
description : ' Kind version'
23
14
required : false
24
15
default : ' 0.24.0'
25
16
26
17
jobs :
18
+ set-kind-version :
19
+ runs-on : ubuntu-latest
20
+ outputs :
21
+ kind-version : ${{steps.set-kind-version.outputs.kind-version }}
22
+ steps :
23
+ - name : Set KinD version
24
+ id : set-kind-version
25
+ env :
26
+ KIND_VERSION : ' 0.24.0'
27
+ shell : bash
28
+ run : |
29
+ if [ "${{ github.event_name }}" == 'workflow_dispatch' ]; then
30
+ KIND_VERSION="${{ inputs.kind-version }}"
31
+ fi
32
+
33
+ echo "Set KinD version to: $KIND_VERSION"
34
+ echo "kind-version=$KIND_VERSION" >> "$GITHUB_OUTPUT"
35
+
27
36
run-tests-gateway :
37
+ needs : [ set-kind-version ]
28
38
runs-on : ubuntu-latest
29
39
30
40
permissions :
55
65
- name : Setup K8S Tools
56
66
uses : ./.github/actions/setup-k8s
57
67
with :
58
- kind-version : ${{ inputs .kind-version }}
68
+ kind-version : ${{ needs.set-kind-version.outputs .kind-version }}
59
69
60
70
- name : Create kind cluster
61
71
run : task integrations:kind:create
76
86
shell : bash
77
87
78
88
run-tests-directory :
89
+ needs : [ set-kind-version ]
79
90
runs-on : ubuntu-latest
80
91
81
92
permissions :
@@ -106,7 +117,7 @@ jobs:
106
117
- name : Setup K8S Tools
107
118
uses : ./.github/actions/setup-k8s
108
119
with :
109
- kind-version : ${{ inputs .kind-version }}
120
+ kind-version : ${{ needs.set-kind-version.outputs .kind-version }}
110
121
111
122
- name : Create kind cluster
112
123
run : task integrations:kind:create
You can’t perform that action at this time.
0 commit comments