7
7
- synchronize
8
8
- reopened
9
9
10
+ permissions : {}
11
+
10
12
jobs :
11
13
lint-chart :
12
14
runs-on : ubuntu-latest
13
15
steps :
14
16
- name : Harden Runner
15
- uses : step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
17
+ uses : step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
16
18
with :
17
19
egress-policy : audit
18
20
- name : Checkout
19
- uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
21
+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
20
22
with :
21
23
fetch-depth : 0
22
24
25
27
with :
26
28
version : v3.4.0
27
29
28
- - uses : actions/setup-python@b64ffcaf5b410884ad320a9cfac8866006a109aa # v4.8 .0
30
+ - uses : actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2 .0
29
31
with :
30
32
python-version : 3.7
31
33
@@ -46,22 +48,15 @@ jobs:
46
48
runs-on : ubuntu-latest
47
49
steps :
48
50
- name : Harden Runner
49
- uses : step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
51
+ uses : step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
50
52
with :
51
53
egress-policy : audit
52
54
- name : Checkout
53
- uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
55
+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
54
56
- name : Setup Go
55
- uses : actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
56
- with :
57
- go-version : 1.20.x
58
- - name : Restore Go cache
59
- uses : actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3.3.3
57
+ uses : actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
60
58
with :
61
- path : ~/go/pkg/mod
62
- key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
63
- restore-keys : |
64
- ${{ runner.os }}-go-
59
+ go-version : 1.22.x
65
60
- name : fmt
66
61
run : make fmt
67
62
- name : vet
@@ -81,28 +76,21 @@ jobs:
81
76
strategy :
82
77
matrix :
83
78
kubernetes-version :
84
- - " 1.25"
85
- - " 1.26"
86
79
- " 1.27"
87
80
- " 1.28"
81
+ - " 1.29"
82
+ - " 1.30"
88
83
steps :
89
84
- name : Harden Runner
90
- uses : step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
85
+ uses : step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
91
86
with :
92
87
egress-policy : audit
93
88
- name : Checkout
94
- uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
89
+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
95
90
- name : Setup Go
96
- uses : actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
91
+ uses : actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
97
92
with :
98
- go-version : 1.20.x
99
- - name : Restore Go cache
100
- uses : actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3.3.3
101
- with :
102
- path : ~/go/pkg/mod
103
- key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
104
- restore-keys : |
105
- ${{ runner.os }}-go-
93
+ go-version : 1.22.x
106
94
- name : run test
107
95
run : make test ENVTEST_K8S_VERSION=${{ matrix.kubernetes-version }}
108
96
@@ -112,22 +100,15 @@ jobs:
112
100
profiles : ${{ steps.profiles.outputs.matrix }}
113
101
steps :
114
102
- name : Harden Runner
115
- uses : step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
103
+ uses : step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
116
104
with :
117
105
egress-policy : audit
118
106
- name : Checkout
119
- uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
107
+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
120
108
- name : Setup Go
121
- uses : actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
122
- with :
123
- go-version : 1.20.x
124
- - name : Restore Go cache
125
- uses : actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3.3.3
109
+ uses : actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
126
110
with :
127
- path : ~/go/pkg/mod
128
- key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
129
- restore-keys : |
130
- ${{ runner.os }}-go-
111
+ go-version : 1.22.x
131
112
- name : build
132
113
run : make build
133
114
- name : Check if working tree is dirty
@@ -144,7 +125,7 @@ jobs:
144
125
run : |
145
126
docker save --output gc-controller-container.tar gc-controller:latest
146
127
- name : Upload image
147
- uses : actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
128
+ uses : actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
148
129
with :
149
130
name : gc-controller-container
150
131
path : gc-controller-container.tar
@@ -156,39 +137,45 @@ jobs:
156
137
- lint-chart
157
138
steps :
158
139
- name : Harden Runner
159
- uses : step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
140
+ uses : step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
160
141
with :
161
142
egress-policy : audit
162
143
- name : Checkout
163
- uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
144
+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
164
145
with :
165
146
fetch-depth : 0
166
147
167
148
- name : Set up Helm
168
149
uses : azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5
169
150
170
- - uses : actions/setup-python@b64ffcaf5b410884ad320a9cfac8866006a109aa # v4.8 .0
151
+ - uses : actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2 .0
171
152
with :
172
153
python-version : 3.7
173
154
174
155
- name : Set up chart-testing
175
156
uses : helm/chart-testing-action@e6669bcd63d7cb57cb4380c33043eebe5d111992 # v2.6.1
176
157
177
158
- name : Create kind cluster
178
- uses : helm/kind-action@99576bfa6ddf9a8e612d83b513da5a75875caced # v1.9 .0
159
+ uses : helm/kind-action@0025e74a8c7512023d06dc019c617aa3cf561fde # v1.10 .0
179
160
180
161
- name : Download gc-controller container
181
- uses : actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
162
+ uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
182
163
with :
183
164
name : gc-controller-container
184
165
path : /tmp
185
166
186
167
- name : Load image
187
168
run : |
188
169
docker load --input /tmp/gc-controller-container.tar
189
- docker tag gc-controller:latest ghcr.io/doodlescheduling/gc-controller:0 .0.0
190
- kind load docker-image ghcr.io/doodlescheduling/gc-controller:0 .0.0 --name chart-testing
170
+ docker tag gc-controller:latest ghcr.io/doodlescheduling/gc-controller:v0 .0.0
171
+ kind load docker-image ghcr.io/doodlescheduling/gc-controller:v0 .0.0 --name chart-testing
191
172
docker image ls -a
192
173
193
174
- name : Run chart-testing (install)
194
175
run : ct install --target-branch=master --chart-dirs chart
176
+
177
+ test-success :
178
+ runs-on : ubuntu-latest
179
+ needs : [test]
180
+ steps :
181
+ - run : echo "all tests succeeded"
0 commit comments