Skip to content

Commit

Permalink
workflows: add independent go-version for setup-go actions
Browse files Browse the repository at this point in the history
Signed-off-by: Mahe Tardy <[email protected]>
  • Loading branch information
mtardy committed Dec 6, 2023
1 parent 0780466 commit 4d2f0f3
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 18 deletions.
6 changes: 5 additions & 1 deletion .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,11 @@
"^\\.github/workflows/[^/]+\\.ya?ml$"
],
"matchStrings": [
// this regex is used to match:
// this regex is used to match both:
//
// # renovate: datasource=golang-version depName=go
// go: '1.21.4'
//
// # renovate: datasource=docker depName=quay.io/lvh-images/kernel-images
// - 'bpf-next-20230912.113936'
"# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\s+.+ ['\"]?(?<currentValue>[^'\"\\s]*)"
Expand Down
Binary file added .github/workflows/.lint-codeql.yml.swp
Binary file not shown.
3 changes: 2 additions & 1 deletion .github/workflows/build-clang-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ jobs:
- name: Install Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version-file: 'go.mod'
# renovate: datasource=golang-version depName=go
go-version: '1.21.4'

- name: Install Bom
shell: bash
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build-images-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ jobs:
- name: Install Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version-file: 'go.mod'
# renovate: datasource=golang-version depName=go
go-version: '1.21.4'

- name: Install Bom
shell: bash
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build-images-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ jobs:
- name: Install Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version-file: 'go.mod'
# renovate: datasource=golang-version depName=go
go-version: '1.21.4'

- name: Install Bom
if: ${{ startsWith(steps.tag.outputs.tag, 'v') }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generated-files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
# renovate: datasource=golang-version depName=go
go-version: '1.21.1'
go-version: '1.21.4'
- name: Go version
run: go version
- name: Validate that generated files are up to date.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gotests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
# renovate: datasource=golang-version depName=go
go-version: '1.21.1'
go-version: '1.21.4'

- name: Install dependencies
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/lint-codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ jobs:
- name: Install Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version-file: 'go.mod'
# renovate: datasource=golang-version depName=go
go-version: '1.21.4'
- name: Initialize CodeQL
uses: github/codeql-action/init@407ffafae6a767df3e0230c3df91b6443ae8df75 # v2.22.8
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/podinfo-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
# renovate: datasource=golang-version depName=go
go-version: '1.21.1'
go-version: '1.21.4'

- name: Install Kind and create cluster
uses: helm/kind-action@dda0770415bac9fc20092cacbc54aa298604d140 # v1.8.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
# renovate: datasource=golang-version depName=go
go-version: '1.21.1'
go-version: '1.21.4'

- name: Set Up Job Variables
id: vars
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/static-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
# renovate: datasource=golang-version depName=go
go-version: '1.21.1'
go-version: '1.21.4'
# using golangci-lint cache instead
cache: false

Expand All @@ -48,7 +48,7 @@ jobs:
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
# renovate: datasource=golang-version depName=go
go-version: '1.21.1'
go-version: '1.21.4'

- name: Check gofmt formatting
run: |
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
# renovate: datasource=golang-version depName=go
go-version: '1.21.1'
go-version: '1.21.4'

- name: Check module vendoring
run: |
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/vmtests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ jobs:
group: ${{ github.ref }}-vmtest-build
cancel-in-progress: true
steps:
- name: Install Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
# renovate: datasource=golang-version depName=go
go-version: '1.21.1'

- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
path: go/src/github.com/cilium/tetragon/

- name: Install Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
# renovate: datasource=golang-version depName=go
go-version: '1.21.4'

- name: Install build dependencies
run: |
sudo apt install libelf-dev netcat-traditional libcap-dev gcc
Expand Down

0 comments on commit 4d2f0f3

Please sign in to comment.