Skip to content

Commit

Permalink
ci: pin go version to 1.20.5 (#3034)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed Jul 13, 2023
1 parent 97a3e1b commit e3b7439
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build-arm64-image.yaml
Expand Up @@ -18,6 +18,9 @@ concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true

env:
GO_VERSION: '1.20.5'

jobs:
build:
name: Build arm64
Expand All @@ -31,6 +34,7 @@ jobs:

- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: go.mod
check-latest: true
cache: false
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/build-kube-ovn-test.yaml
@@ -1,6 +1,9 @@
name: Build Test
on: workflow_dispatch

env:
GO_VERSION: ''

jobs:
build:
name: Build Test
Expand All @@ -10,6 +13,7 @@ jobs:
- uses: docker/setup-buildx-action@v2
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: go.mod
check-latest: true
cache: false
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build-windows.yaml
Expand Up @@ -22,6 +22,7 @@ concurrency:
cancel-in-progress: true

env:
GO_VERSION: '1.20.5'
GOSEC_VERSION: '2.15.0'

jobs:
Expand All @@ -35,6 +36,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: go.mod
check-latest: true
cache: false
Expand Down Expand Up @@ -177,6 +179,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: go.mod
check-latest: true
cache: false
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/build-x86-image.yaml
Expand Up @@ -21,6 +21,7 @@ concurrency:
cancel-in-progress: true

env:
GO_VERSION: '1.20.5'
GOSEC_VERSION: '2.15.0'
HELM_VERSION: v3.11.3
SUBMARINER_VERSION: '0.14.3'
Expand Down Expand Up @@ -77,6 +78,7 @@ jobs:
- uses: docker/setup-buildx-action@v2
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: go.mod
check-latest: true
cache: false
Expand Down Expand Up @@ -208,6 +210,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: ${{ env.E2E_DIR }}/go.mod
check-latest: true
cache: false
Expand Down Expand Up @@ -241,6 +244,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: go.mod
check-latest: true
cache: false
Expand Down Expand Up @@ -312,6 +316,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: ${{ env.E2E_DIR }}/go.mod
check-latest: true
cache: false
Expand Down Expand Up @@ -461,6 +466,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: ${{ env.E2E_DIR }}/go.mod
check-latest: true
cache: false
Expand Down Expand Up @@ -606,6 +612,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: ${{ env.E2E_DIR }}/go.mod
check-latest: true
cache: false
Expand Down Expand Up @@ -866,6 +873,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: ${{ env.E2E_DIR }}/go.mod
check-latest: true
cache: false
Expand Down Expand Up @@ -1009,6 +1017,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: ${{ env.E2E_DIR }}/go.mod
check-latest: true
cache: false
Expand Down Expand Up @@ -1252,6 +1261,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: ${{ env.E2E_DIR }}/go.mod
check-latest: true
cache: false
Expand Down Expand Up @@ -1340,6 +1350,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: ${{ env.E2E_DIR }}/go.mod
check-latest: true
cache: false
Expand Down Expand Up @@ -1422,6 +1433,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: ${{ env.E2E_DIR }}/go.mod
check-latest: true
cache: false
Expand Down Expand Up @@ -1574,6 +1586,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: ${{ env.E2E_DIR }}/go.mod
check-latest: true
cache: false
Expand Down Expand Up @@ -1686,6 +1699,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: ${{ env.E2E_DIR }}/go.mod
check-latest: true
cache: false
Expand Down Expand Up @@ -1962,6 +1976,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: ${{ env.E2E_DIR }}/go.mod
check-latest: true
cache: false
Expand Down Expand Up @@ -2053,6 +2068,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: ${{ env.E2E_DIR }}/go.mod
check-latest: true
cache: false
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/codeql-analysis.yml
Expand Up @@ -18,6 +18,9 @@ concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true

env:
GO_VERSION: ''

jobs:
analyze:
name: Analyze
Expand All @@ -42,6 +45,7 @@ jobs:

- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: go.mod
check-latest: true
cache: false
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/lint.yaml
Expand Up @@ -12,6 +12,9 @@ concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true

env:
GO_VERSION: ''

jobs:
golangci:
name: lint
Expand All @@ -20,6 +23,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: go.mod
check-latest: true
cache: false
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/scheduled-e2e.yaml
Expand Up @@ -10,6 +10,7 @@ concurrency:
cancel-in-progress: true

env:
GO_VERSION: '1.20.5'
HELM_VERSION: v3.11.3
SUBMARINER_VERSION: '0.14.3'

Expand Down Expand Up @@ -44,6 +45,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: go.mod
check-latest: true
cache: false
Expand Down Expand Up @@ -130,6 +132,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: go.mod
check-latest: true
cache: false
Expand Down Expand Up @@ -212,6 +215,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: go.mod
check-latest: true
cache: false
Expand Down Expand Up @@ -351,6 +355,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: go.mod
check-latest: true
cache: false
Expand Down Expand Up @@ -426,6 +431,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: go.mod
check-latest: true
cache: false
Expand Down Expand Up @@ -705,6 +711,7 @@ jobs:

- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: go.mod
check-latest: true
cache: false
Expand Down Expand Up @@ -775,6 +782,7 @@ jobs:

- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: go.mod
check-latest: true
cache: false
Expand Down Expand Up @@ -844,6 +852,7 @@ jobs:

- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: go.mod
check-latest: true
cache: false
Expand Down Expand Up @@ -976,6 +985,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: go.mod
check-latest: true
cache: false
Expand Down Expand Up @@ -1063,6 +1073,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: go.mod
check-latest: true
cache: false
Expand Down Expand Up @@ -1145,6 +1156,7 @@ jobs:

- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: go.mod
check-latest: true
cache: false
Expand Down Expand Up @@ -1303,6 +1315,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: go.mod
check-latest: true
cache: false
Expand Down Expand Up @@ -1374,6 +1387,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: go.mod
check-latest: true
cache: false
Expand Down

0 comments on commit e3b7439

Please sign in to comment.