Skip to content

Commit f3f424f

Browse files
committed
Updated Go version
1 parent 8ee79f7 commit f3f424f

File tree

5 files changed

+27
-0
lines changed

5 files changed

+27
-0
lines changed

.github/actions/verify/action.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: "Verify"
22
description: "Verify code"
33
inputs:
4+
GO_VERSION:
5+
description: Go version to use
6+
default: "~1.23"
7+
required: false
8+
49
ENABLE_LINTING:
510
description: Run golangci-lint
611
default: "true"
@@ -13,6 +18,12 @@ inputs:
1318
runs:
1419
using: "composite"
1520
steps:
21+
- name: Set up Go
22+
id: go
23+
uses: actions/setup-go@v5
24+
with:
25+
go-version: ${{ inputs.GO_VERSION }}
26+
1627
- name: Run lint
1728
if: ${{ inputs.ENABLE_LINTING == 'true' }}
1829
shell: bash

.github/workflows/_pr.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ name: Operator PR Request
33
on:
44
workflow_call:
55
inputs:
6+
GO_VERSION:
7+
description: Go version to use
8+
default: "~1.23"
9+
required: false
10+
type: string
11+
612
ENABLE_LINTING:
713
description: Run golangci-lint
814
default: true
@@ -56,6 +62,7 @@ jobs:
5662
id: verify
5763
uses: ./.github/actions/verify
5864
with:
65+
GO_VERSION: ${{ inputs.GO_VERSION }}
5966
ENABLE_LINTING: ${{ inputs.ENABLE_LINTING }}
6067
ENABLE_UNIT_TESTS: ${{ inputs.ENABLE_UNIT_TESTS }}
6168

.github/workflows/_push.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ name: Operator Push
33
on:
44
workflow_call:
55
inputs:
6+
GO_VERSION:
7+
description: Go version to use
8+
default: "~1.23"
9+
required: false
10+
type: string
11+
612
ENABLE_LINTING:
713
description: Run golangci-lint
814
default: true
@@ -56,6 +62,7 @@ jobs:
5662
id: verify
5763
uses: ./.github/actions/verify
5864
with:
65+
GO_VERSION: ${{ inputs.GO_VERSION }}
5966
ENABLE_LINTING: ${{ inputs.ENABLE_LINTING }}
6067
ENABLE_UNIT_TESTS: ${{ inputs.ENABLE_UNIT_TESTS }}
6168

.github/workflows/pull_request.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@ jobs:
2222
CONTAINER_REGISTRY_PASSWORD: ${{ secrets.GHCR_TOKEN }}
2323
SLACK_WEBHOOK_URL: ${{ secrets.STAKATER_DELIVERY_SLACK_WEBHOOK }}
2424
with:
25+
GO_VERSION: 1.23.6
2526
ENABLE_LINTING: true
2627
ENABLE_UNIT_TESTS: true

.github/workflows/push.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@ jobs:
2222
CONTAINER_REGISTRY_USERNAME: stakater-user
2323
CONTAINER_REGISTRY_PASSWORD: ${{ secrets.GHCR_TOKEN }}
2424
with:
25+
GO_VERSION: 1.23.6
2526
ENABLE_LINTING: true
2627
ENABLE_UNIT_TESTS: true

0 commit comments

Comments
 (0)