Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit e89a5e1

Browse files
authored
chore: Bump go version to 1.22; Udpate deps (#318)
* chore: Bump go version to 1.22 * chore: Update deps * ci: Fix version on ci * ci: Fix dockerfiles pipeline * ci: Fix ci * chore: Add missed command * ci: Fix commands
1 parent f49b80b commit e89a5e1

80 files changed

Lines changed: 1369 additions & 8042 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/codeql-analysis.yml

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,42 @@
1-
# For most projects, this workflow file will not need changing; you simply need
2-
# to commit it to your repository.
3-
#
4-
# You may wish to alter this file to override the set of languages analyzed,
5-
# or to provide custom queries or build logic.
6-
#
7-
# ******** NOTE ********
8-
# We have attempted to detect the languages in your repository. Please check
9-
# the `language` matrix defined below to confirm you have the correct set of
10-
# supported CodeQL languages.
11-
#
121
name: "CodeQL"
132

143
on:
154
push:
165
branches: [ master ]
176
pull_request:
18-
# The branches below must be a subset of the branches above
197
branches: [ master ]
208
schedule:
219
- cron: '31 10 * * 0'
2210

2311
jobs:
2412
analyze:
2513
name: Analyze
26-
runs-on: ubuntu-latest
14+
runs-on: ${{ matrix.os }}
2715
permissions:
2816
actions: read
2917
contents: read
3018
security-events: write
31-
3219
strategy:
3320
fail-fast: true
3421
matrix:
3522
language: [ 'go' ]
36-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37-
# Learn more about CodeQL language support at https://git.io/codeql-language-support
38-
23+
os: [ 'ubuntu-22.04' ]
24+
go-version: [1.22.x]
3925
steps:
40-
- name: Checkout repository
26+
- name: Checkout
4127
uses: actions/checkout@v4
28+
with:
29+
fetch-depth: 0
30+
31+
- name: Set up go
32+
uses: actions/setup-go@v5.0.0
33+
with:
34+
go-version: ${{ matrix.go-version }}
4235

43-
# Initializes the CodeQL tools for scanning.
4436
- name: Initialize CodeQL
4537
uses: github/codeql-action/init@v3
4638
with:
4739
languages: ${{ matrix.language }}
48-
# If you wish to specify custom queries, you can do so here or in a config file.
49-
# By default, queries listed here will override any specified in a config file.
50-
# Prefix the list here with "+" to use these queries and those in the config file.
51-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
5240

5341
- name: Build
5442
run: |

.github/workflows/dockerfiles.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: build-lint-docker-images
2+
3+
on:
4+
push:
5+
branches:
6+
- "master"
7+
pull_request:
8+
types: [ opened, synchronize, reopened ]
9+
branches:
10+
- "*"
11+
paths:
12+
- "!**"
13+
- "build/docker/**"
14+
- "!build/docker/**.sh"
15+
- ".github/workflows/dockerfiles.yml"
16+
17+
jobs:
18+
lint-dockerfiles:
19+
strategy:
20+
fail-fast: false
21+
max-parallel: 4
22+
matrix:
23+
dockerfile:
24+
[
25+
"./build/docker/go-tools/Dockerfile",
26+
]
27+
runs-on: "ubuntu-22.04"
28+
name: Lint ${{ matrix.dockerfile }}
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v4
32+
with:
33+
fetch-depth: 0
34+
35+
- name: Lint
36+
uses: jbergstroem/hadolint-gh-action@v1
37+
with:
38+
dockerfile: ${{ matrix.dockerfile }}
39+
annotate: true
40+
error_level: 2
41+
42+
build-targets:
43+
strategy:
44+
fail-fast: false
45+
max-parallel: 4
46+
matrix:
47+
target:
48+
[
49+
"go-tools",
50+
]
51+
runs-on: "ubuntu-22.04"
52+
name: Build ${{ matrix.target }}
53+
steps:
54+
- name: Checkout
55+
uses: actions/checkout@v4
56+
with:
57+
fetch-depth: 0
58+
59+
- name: Set up QEMU
60+
uses: docker/setup-qemu-action@v3
61+
with:
62+
platforms: 'linux/arm64,linux/amd64'
63+
64+
- name: Set up Docker Buildx
65+
uses: docker/setup-buildx-action@v3
66+
67+
- name: Build
68+
run: |
69+
make build-${{ matrix.target }}
70+

.github/workflows/go.yml

Lines changed: 40 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
max-parallel: 2
2828
matrix:
2929
os: [ "ubuntu-22.04" ]
30-
go: [ "1.20" ]
30+
go-version: [1.22.x]
3131
runs-on: ${{ matrix.os }}
3232
name: Build
3333
steps:
@@ -36,10 +36,18 @@ jobs:
3636
with:
3737
fetch-depth: 0
3838

39+
- name: Set up QEMU
40+
uses: docker/setup-qemu-action@v3
41+
with:
42+
platforms: 'linux/arm64,linux/amd64'
43+
44+
- name: Set up Docker Buildx
45+
uses: docker/setup-buildx-action@v3
46+
3947
- name: Set up go
4048
uses: actions/setup-go@v5
4149
with:
42-
go-version: ${{ matrix.go }}
50+
go-version: ${{ matrix.go-version }}
4351

4452
- run: |
4553
go version
@@ -68,11 +76,6 @@ jobs:
6876
make build
6977
shell: bash
7078

71-
- name: Install GoReleaser
72-
uses: goreleaser/goreleaser-action@v5
73-
with:
74-
install-only: true
75-
7679
- name: Check release
7780
run: |
7881
make check-releaser
@@ -84,7 +87,7 @@ jobs:
8487
max-parallel: 2
8588
matrix:
8689
os: [ "ubuntu-22.04" ]
87-
go: [ "1.20" ]
90+
go-version: [1.22.x]
8891
runs-on: ${{ matrix.os }}
8992
name: Run Tests
9093
steps:
@@ -93,10 +96,18 @@ jobs:
9396
with:
9497
fetch-depth: 0
9598

99+
- name: Set up QEMU
100+
uses: docker/setup-qemu-action@v3
101+
with:
102+
platforms: 'linux/arm64,linux/amd64'
103+
104+
- name: Set up Docker Buildx
105+
uses: docker/setup-buildx-action@v3
106+
96107
- name: Set up go
97108
uses: actions/setup-go@v5
98109
with:
99-
go-version: ${{ matrix.go }}
110+
go-version: ${{ matrix.go-version }}
100111

101112
- run: |
102113
go version
@@ -131,7 +142,7 @@ jobs:
131142
max-parallel: 2
132143
matrix:
133144
os: [ "ubuntu-22.04" ]
134-
go: [ "1.20" ]
145+
go-version: [1.22.x]
135146
runs-on: ${{ matrix.os }}
136147
name: Run linters
137148
steps:
@@ -140,10 +151,18 @@ jobs:
140151
with:
141152
fetch-depth: 0
142153

154+
- name: Set up QEMU
155+
uses: docker/setup-qemu-action@v3
156+
with:
157+
platforms: 'linux/arm64,linux/amd64'
158+
159+
- name: Set up Docker Buildx
160+
uses: docker/setup-buildx-action@v3
161+
143162
- name: Set up go
144163
uses: actions/setup-go@v5
145164
with:
146-
go-version: ${{ matrix.go }}
165+
go-version: ${{ matrix.go-version }}
147166
- run: |
148167
go version
149168
shell: bash
@@ -183,7 +202,7 @@ jobs:
183202
max-parallel: 1
184203
matrix:
185204
os: [ "ubuntu-22.04" ]
186-
go: [ "1.20" ]
205+
go-version: [1.22.x]
187206
runs-on: ${{ matrix.os }}
188207
name: Quality reports
189208
steps:
@@ -192,10 +211,18 @@ jobs:
192211
with:
193212
fetch-depth: 0
194213

214+
- name: Set up QEMU
215+
uses: docker/setup-qemu-action@v3
216+
with:
217+
platforms: 'linux/arm64,linux/amd64'
218+
219+
- name: Set up Docker Buildx
220+
uses: docker/setup-buildx-action@v3
221+
195222
- name: Set up go
196223
uses: actions/setup-go@v5
197224
with:
198-
go-version: ${{ matrix.go }}
225+
go-version: ${{ matrix.go-version }}
199226
- run: |
200227
go version
201228
shell: bash

.github/workflows/release.yml

Lines changed: 40 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
max-parallel: 2
1515
matrix:
1616
os: [ 'ubuntu-22.04' ]
17-
go: [ "1.20" ]
17+
go-version: [1.22.x]
1818
runs-on: ${{ matrix.os }}
1919
name: Build
2020
steps:
@@ -23,10 +23,18 @@ jobs:
2323
with:
2424
fetch-depth: 0
2525

26+
- name: Set up QEMU
27+
uses: docker/setup-qemu-action@v3
28+
with:
29+
platforms: 'linux/arm64,linux/amd64'
30+
31+
- name: Set up Docker Buildx
32+
uses: docker/setup-buildx-action@v3
33+
2634
- name: Set up go
2735
uses: actions/setup-go@v5
2836
with:
29-
go-version: ${{ matrix.go }}
37+
go-version: ${{ matrix.go-version }}
3038

3139
- run: |
3240
go version
@@ -60,7 +68,7 @@ jobs:
6068
max-parallel: 2
6169
matrix:
6270
os: [ 'ubuntu-22.04' ]
63-
go: [ "1.20" ]
71+
go-version: [1.22.x]
6472
runs-on: ${{ matrix.os }}
6573
name: Regression tests
6674
steps:
@@ -69,10 +77,18 @@ jobs:
6977
with:
7078
fetch-depth: 0
7179

80+
- name: Set up QEMU
81+
uses: docker/setup-qemu-action@v3
82+
with:
83+
platforms: 'linux/arm64,linux/amd64'
84+
85+
- name: Set up Docker Buildx
86+
uses: docker/setup-buildx-action@v3
87+
7288
- name: Set up go
7389
uses: actions/setup-go@v5
7490
with:
75-
go-version: ${{ matrix.go }}
91+
go-version: ${{ matrix.go-version }}
7692

7793
- run: |
7894
go version
@@ -109,7 +125,7 @@ jobs:
109125
max-parallel: 1
110126
matrix:
111127
os: [ 'ubuntu-22.04' ]
112-
go: [ "1.20" ]
128+
go-version: [1.22.x]
113129
runs-on: ${{ matrix.os }}
114130
name: Lint
115131
steps:
@@ -118,10 +134,18 @@ jobs:
118134
with:
119135
fetch-depth: 0
120136

137+
- name: Set up QEMU
138+
uses: docker/setup-qemu-action@v3
139+
with:
140+
platforms: 'linux/arm64,linux/amd64'
141+
142+
- name: Set up Docker Buildx
143+
uses: docker/setup-buildx-action@v3
144+
121145
- name: Set up go
122146
uses: actions/setup-go@v5
123147
with:
124-
go-version: ${{ matrix.go }}
148+
go-version: ${{ matrix.go-version }}
125149

126150
- run: |
127151
go version
@@ -162,7 +186,7 @@ jobs:
162186
max-parallel: 1
163187
matrix:
164188
os: [ 'ubuntu-22.04' ]
165-
go: [ "1.20" ]
189+
go-version: [1.22.x]
166190
runs-on: ${{ matrix.os }}
167191
name: Release
168192
steps:
@@ -171,20 +195,23 @@ jobs:
171195
with:
172196
fetch-depth: 0
173197

198+
- name: Set up QEMU
199+
uses: docker/setup-qemu-action@v3
200+
with:
201+
platforms: 'linux/arm64,linux/amd64'
202+
203+
- name: Set up Docker Buildx
204+
uses: docker/setup-buildx-action@v3
205+
174206
- name: Set up go
175207
uses: actions/setup-go@v5
176208
with:
177-
go-version: ${{ matrix.go }}
209+
go-version: ${{ matrix.go-version }}
178210

179211
- run: |
180212
go version
181213
shell: bash
182214
183-
- name: Install GoReleaser
184-
uses: goreleaser/goreleaser-action@v5
185-
with:
186-
install-only: true
187-
188215
- name: Run GoReleaser
189216
if: success()
190217
env:

0 commit comments

Comments
 (0)