Skip to content

Commit

Permalink
[chore] configure renovate to update go versions automatically
Browse files Browse the repository at this point in the history
Signed-off-by: odubajDT <[email protected]>
  • Loading branch information
odubajDT committed Nov 21, 2024
1 parent b6b8679 commit 27757ae
Show file tree
Hide file tree
Showing 14 changed files with 72 additions and 32 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build-and-test-arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ env:
# Make sure to exit early if cache segment download times out after 2 minutes.
# We limit cache download as a whole to 5 minutes.
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
# renovate: datasource=golang-version depName=go
GO_VERSION: "1.22.9"

# Do not cancel this workflow on main. See https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/16616
concurrency:
Expand Down Expand Up @@ -50,7 +52,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "~1.22.5"
go-version: ${{ env.GO_VERSION }}
cache: false
- name: Cache Go
id: go-cache
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build-and-test-darwin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ env:
# Make sure to exit early if cache segment download times out after 2 minutes.
# We limit cache download as a whole to 5 minutes.
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
# renovate: datasource=golang-version depName=go
GO_VERSION: "1.22.9"

# Do not cancel this workflow on main. See https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/16616
concurrency:
Expand All @@ -29,7 +31,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "~1.22.5"
go-version: ${{ env.GO_VERSION }}
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -70,7 +72,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "~1.22.5"
go-version: ${{ env.GO_VERSION }}
cache: false
- name: Install Tools
if: steps.go-cache.outputs.cache-hit != 'true'
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/build-and-test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ env:
# Make sure to exit early if cache segment download times out after 2 minutes.
# We limit cache download as a whole to 5 minutes.
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
# renovate: datasource=golang-version depName=go
GO_VERSION: "1.22.9"

# Do not cancel this workflow on main
concurrency:
Expand Down Expand Up @@ -58,7 +60,7 @@ jobs:
run: Install-WindowsFeature -name Web-Server -IncludeManagementTools
- uses: actions/setup-go@v5
with:
go-version: "1.22.8"
go-version: ${{ env.GO_VERSION }}
cache: false
- name: Cache Go
id: go-mod-cache
Expand Down
20 changes: 11 additions & 9 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ env:
# Make sure to exit early if cache segment download times out after 2 minutes.
# We limit cache download as a whole to 5 minutes.
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
# renovate: datasource=golang-version depName=go
GO_VERSION: "1.22.9"

# Do not cancel this workflow on main. See https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/16616
concurrency:
Expand All @@ -26,7 +28,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.8"
go-version: ${{ env.GO_VERSION }}
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -94,7 +96,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.8"
go-version: ${{ env.GO_VERSION }}
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -164,7 +166,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.22.8"
go-version: ${{ env.GO_VERSION }}
cache: false
- name: Cache Go
id: go-cache
Expand All @@ -188,7 +190,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.8"
go-version: ${{ env.GO_VERSION }}
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -368,7 +370,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.8"
go-version: ${{ env.GO_VERSION }}
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -407,7 +409,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.8"
go-version: ${{ env.GO_VERSION }}
cache: false
- name: Cache Go
id: go-cache
Expand All @@ -434,7 +436,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.8"
go-version: ${{ env.GO_VERSION }}
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -506,7 +508,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.8"
go-version: ${{ env.GO_VERSION }}
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -556,7 +558,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.8"
go-version: ${{ env.GO_VERSION }}
cache: false
- name: Mkdir bin and dist
run: |
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ env:
# Make sure to exit early if cache segment download times out after 2 minutes.
# We limit cache download as a whole to 5 minutes.
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
# renovate: datasource=golang-version depName=go
GO_VERSION: "1.22.9"

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
Expand All @@ -33,7 +35,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: "1.22.8"
go-version: ${{ env.GO_VERSION }}
cache: false
- name: Cache Go
id: go-cache
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ on:
branches: [main]
paths-ignore:
- "**/README.md"

env:
# renovate: datasource=golang-version depName=go
GO_VERSION: "1.22.9"
jobs:
CodeQL-Build:
runs-on: macos-latest
Expand All @@ -20,7 +22,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.8"
go-version: ${{ env.GO_VERSION }}
cache: false

# Initializes the CodeQL tools for scanning.
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/e2e-tests-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ env:
# Make sure to exit early if cache segment download times out after 2 minutes.
# We limit cache download as a whole to 5 minutes.
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
# renovate: datasource=golang-version depName=go
GO_VERSION: "1.22.9"

jobs:
collector-build:
Expand All @@ -27,7 +29,7 @@ jobs:
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.21.12"
go-version: ${{ env.GO_VERSION }}
cache: false
- name: Cache Go
id: go-mod-cache
Expand Down Expand Up @@ -59,7 +61,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.21.12"
go-version: ${{ env.GO_VERSION }}
cache: false
- name: Cache Go
id: go-mod-cache
Expand Down Expand Up @@ -93,7 +95,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ~1.22.8
go-version: ${{ env.GO_VERSION }}
cache: false
- name: Cache Go
uses: actions/cache@v4
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ env:
# Make sure to exit early if cache segment download times out after 2 minutes.
# We limit cache download as a whole to 5 minutes.
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
# renovate: datasource=golang-version depName=go
GO_VERSION: "1.22.9"
jobs:
collector-build:
runs-on: ubuntu-latest
Expand All @@ -26,7 +28,7 @@ jobs:
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.8"
go-version: ${{ env.GO_VERSION }}
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -57,7 +59,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.8"
go-version: ${{ env.GO_VERSION }}
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -89,7 +91,7 @@ jobs:
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.8"
go-version: ${{ env.GO_VERSION }}
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -137,7 +139,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.8"
go-version: ${{ env.GO_VERSION }}
cache: false
- name: Cache Go
id: go-cache
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/load-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ env:
# Make sure to exit early if cache segment download times out after 2 minutes.
# We limit cache download as a whole to 5 minutes.
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
# renovate: datasource=golang-version depName=go
GO_VERSION: "1.22.9"

jobs:
setup-environment:
Expand All @@ -28,7 +30,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.8"
go-version: ${{ env.GO_VERSION }}
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -67,7 +69,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.8"
go-version: ${{ env.GO_VERSION }}
cache: false
- name: Cache Go
id: go-cache
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
current-beta:
required: true
description: Current version (beta, like 0.69.1)
env:
# renovate: datasource=golang-version depName=go
GO_VERSION: "1.22.9"
jobs:
# Releasing opentelemetry-collector-contrib
prepare-release:
Expand All @@ -26,7 +29,7 @@ jobs:
path: opentelemetry-collector-contrib
- uses: actions/setup-go@v5
with:
go-version: "1.22.8"
go-version: ${{ env.GO_VERSION }}
cache: false
- name: Prepare release for contrib
working-directory: opentelemetry-collector-contrib
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/prometheus-compliance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ env:
# Make sure to exit early if cache segment download times out after 2 minutes.
# We limit cache download as a whole to 5 minutes.
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
# renovate: datasource=golang-version depName=go
GO_VERSION: "1.22.9"

jobs:
prometheus-compliance-tests:
Expand All @@ -31,7 +33,7 @@ jobs:
path: opentelemetry-collector-contrib
- uses: actions/setup-go@v5
with:
go-version: "1.22.8"
go-version: ${{ env.GO_VERSION }}
cache: false
- name: Cache Go
id: go-cache
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/telemetrygen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ env:
# Make sure to exit early if cache segment download times out after 2 minutes.
# We limit cache download as a whole to 5 minutes.
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
# renovate: datasource=golang-version depName=go
GO_VERSION: "1.22.9"

# Do not cancel this workflow on main. See https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/16616
concurrency:
Expand All @@ -28,7 +30,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.8"
go-version: ${{ env.GO_VERSION }}
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -67,7 +69,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.8"
go-version: ${{ env.GO_VERSION }}
cache: false
- name: Cache Go
id: go-cache
Expand Down Expand Up @@ -112,7 +114,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.8"
go-version: ${{ env.GO_VERSION }}
cache: false
- name: Cache Go
id: go-cache
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/tidy-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ env:
# Make sure to exit early if cache segment download times out after 2 minutes.
# We limit cache download as a whole to 5 minutes.
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
# renovate: datasource=golang-version depName=go
GO_VERSION: "1.22.9"

jobs:
setup-environment:
Expand All @@ -21,7 +23,7 @@ jobs:
ref: ${{ github.head_ref }}
- uses: actions/setup-go@v5
with:
go-version: "1.22.8"
go-version: ${{ env.GO_VERSION }}
cache: false
- name: Cache Go
id: go-cache
Expand Down
Loading

0 comments on commit 27757ae

Please sign in to comment.