From b9c8bc248b6651ccd23ef343248d3a2c34017add Mon Sep 17 00:00:00 2001 From: Sergio Arroutbi Date: Fri, 9 Feb 2024 10:55:33 +0100 Subject: [PATCH] Add to CI latest working Golang version (1.21.7) Adapt all CI Github actions to use the latest Golang stable vesrion that is demonstrated to be working for tang-operator compilation. Golang 1.22.0 compilation is failing, so 1.21.7 version will be the one used and recommended Resolves: #254 Signed-off-by: Sergio Arroutbi --- .github/workflows/cross_compile.yaml | 2 +- .github/workflows/deploy.yaml | 2 +- .github/workflows/golangci-lint.yaml | 4 ++-- .github/workflows/staticcheck.yaml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cross_compile.yaml b/.github/workflows/cross_compile.yaml index bad40d76..7531c6f6 100644 --- a/.github/workflows/cross_compile.yaml +++ b/.github/workflows/cross_compile.yaml @@ -25,7 +25,7 @@ jobs: - name: Go-Setup uses: actions/setup-go@v4.0.1 with: - go-version: '1.21.3' + go-version: '1.21.7' - name: Build env: diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index fa408b54..d449e2a7 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -22,7 +22,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4.0.1 with: - go-version: '1.21.3' + go-version: '1.21.7' - name: Build run: make build diff --git a/.github/workflows/golangci-lint.yaml b/.github/workflows/golangci-lint.yaml index 0f8cf1d8..75d67e49 100644 --- a/.github/workflows/golangci-lint.yaml +++ b/.github/workflows/golangci-lint.yaml @@ -23,10 +23,10 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: '1.21.3' + go-version: '1.21.7' cache: false - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: - version: v1.53 + version: v1.54 args: --timeout=5m diff --git a/.github/workflows/staticcheck.yaml b/.github/workflows/staticcheck.yaml index 643eaa7b..13253c49 100644 --- a/.github/workflows/staticcheck.yaml +++ b/.github/workflows/staticcheck.yaml @@ -20,7 +20,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4.0.1 with: - go-version: '1.21.3' + go-version: '1.21.7' - name: StaticCheck run: | go install honnef.co/go/tools/cmd/staticcheck@latest && ls -1 && staticcheck ./...