77 - synchronize
88 - reopened
99
10+ permissions : {}
11+
1012jobs :
1113 lint-chart :
1214 runs-on : ubuntu-latest
1315 steps :
1416 - name : Harden Runner
15- uses : step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
17+ uses : step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
1618 with :
1719 egress-policy : audit
1820 - name : Checkout
19- uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
21+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
2022 with :
2123 fetch-depth : 0
2224
2527 with :
2628 version : v3.4.0
2729
28- - uses : actions/setup-python@b64ffcaf5b410884ad320a9cfac8866006a109aa # v4.8 .0
30+ - uses : actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2 .0
2931 with :
3032 python-version : 3.7
3133
@@ -46,22 +48,15 @@ jobs:
4648 runs-on : ubuntu-latest
4749 steps :
4850 - name : Harden Runner
49- uses : step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
51+ uses : step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
5052 with :
5153 egress-policy : audit
5254 - name : Checkout
53- uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
55+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
5456 - 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
6058 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
6560 - name : fmt
6661 run : make fmt
6762 - name : vet
@@ -81,28 +76,21 @@ jobs:
8176 strategy :
8277 matrix :
8378 kubernetes-version :
84- - " 1.25"
85- - " 1.26"
8679 - " 1.27"
8780 - " 1.28"
81+ - " 1.29"
82+ - " 1.30"
8883 steps :
8984 - name : Harden Runner
90- uses : step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
85+ uses : step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
9186 with :
9287 egress-policy : audit
9388 - name : Checkout
94- uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
89+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
9590 - name : Setup Go
96- uses : actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
91+ uses : actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
9792 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
10694 - name : run test
10795 run : make test ENVTEST_K8S_VERSION=${{ matrix.kubernetes-version }}
10896
@@ -112,22 +100,15 @@ jobs:
112100 profiles : ${{ steps.profiles.outputs.matrix }}
113101 steps :
114102 - name : Harden Runner
115- uses : step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
103+ uses : step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
116104 with :
117105 egress-policy : audit
118106 - name : Checkout
119- uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
107+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
120108 - 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
126110 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
131112 - name : build
132113 run : make build
133114 - name : Check if working tree is dirty
@@ -144,7 +125,7 @@ jobs:
144125 run : |
145126 docker save --output gc-controller-container.tar gc-controller:latest
146127 - name : Upload image
147- uses : actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
128+ uses : actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
148129 with :
149130 name : gc-controller-container
150131 path : gc-controller-container.tar
@@ -156,39 +137,45 @@ jobs:
156137 - lint-chart
157138 steps :
158139 - name : Harden Runner
159- uses : step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
140+ uses : step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
160141 with :
161142 egress-policy : audit
162143 - name : Checkout
163- uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
144+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
164145 with :
165146 fetch-depth : 0
166147
167148 - name : Set up Helm
168149 uses : azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5
169150
170- - uses : actions/setup-python@b64ffcaf5b410884ad320a9cfac8866006a109aa # v4.8 .0
151+ - uses : actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2 .0
171152 with :
172153 python-version : 3.7
173154
174155 - name : Set up chart-testing
175156 uses : helm/chart-testing-action@e6669bcd63d7cb57cb4380c33043eebe5d111992 # v2.6.1
176157
177158 - name : Create kind cluster
178- uses : helm/kind-action@99576bfa6ddf9a8e612d83b513da5a75875caced # v1.9 .0
159+ uses : helm/kind-action@0025e74a8c7512023d06dc019c617aa3cf561fde # v1.10 .0
179160
180161 - name : Download gc-controller container
181- uses : actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
162+ uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
182163 with :
183164 name : gc-controller-container
184165 path : /tmp
185166
186167 - name : Load image
187168 run : |
188169 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
191172 docker image ls -a
192173
193174 - name : Run chart-testing (install)
194175 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