From 4f644ec637befcbbcc761a68aba57075ac3efaf1 Mon Sep 17 00:00:00 2001 From: Harold Wanyama Date: Mon, 30 Sep 2024 22:07:17 +0300 Subject: [PATCH] Feature/Go Version - Reverted to older versions Signed-off-by: Harold Wanyama --- .github/workflows/build-pr.yml | 2 +- .github/workflows/deploy-dev.yml | 2 +- .github/workflows/deploy-prod.yml | 2 +- .github/workflows/yarn-scan-backend-go-pr.yml | 2 +- .github/workflows/yarn-scan-backend-pr.yml | 2 +- cla-backend-go/Makefile | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml index 3433f6149..d7dee8ce9 100644 --- a/.github/workflows/build-pr.yml +++ b/.github/workflows/build-pr.yml @@ -26,7 +26,7 @@ jobs: - name: Setup go uses: actions/setup-go@v3 with: - go-version: '1.23.1' + go-version: '1.20.1' - name: Go Version run: go version - name: Setup Node diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index f4f759706..852f7ad82 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -26,7 +26,7 @@ jobs: - name: Setup go uses: actions/setup-go@v3 with: - go-version: '1.23.1' + go-version: '1.20.1' - name: Go Version run: go version - name: Setup Node diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index 60bdf333e..c8cd1a666 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -28,7 +28,7 @@ jobs: - name: Setup go uses: actions/setup-go@v3 with: - go-version: '1.23.1' + go-version: '1.20.1' check-latest: true - name: Go Version run: go version diff --git a/.github/workflows/yarn-scan-backend-go-pr.yml b/.github/workflows/yarn-scan-backend-go-pr.yml index bf2df01d2..9e63d1246 100644 --- a/.github/workflows/yarn-scan-backend-go-pr.yml +++ b/.github/workflows/yarn-scan-backend-go-pr.yml @@ -8,7 +8,7 @@ on: # https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions pull_request: branches: - - main + - dev jobs: yarn-scan-backend-go-pr: diff --git a/.github/workflows/yarn-scan-backend-pr.yml b/.github/workflows/yarn-scan-backend-pr.yml index a86a6d372..4f8fa851e 100644 --- a/.github/workflows/yarn-scan-backend-pr.yml +++ b/.github/workflows/yarn-scan-backend-pr.yml @@ -8,7 +8,7 @@ on: # https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions pull_request: branches: - - main + - dev jobs: yarn-scan-backend-pr: diff --git a/cla-backend-go/Makefile b/cla-backend-go/Makefile index e95dd053f..6f64e78f8 100644 --- a/cla-backend-go/Makefile +++ b/cla-backend-go/Makefile @@ -35,7 +35,7 @@ ifeq "$(shell uname -s)" "Linux" endif LINT_TOOL=$(shell go env GOPATH)/bin/golangci-lint -LINT_VERSION=v1.61.0 +LINT_VERSION=v1.51.2 SWAGGER_DIR=$(ROOT_DIR)/swagger SWAGGER_BIN_DIR=/usr/local/bin SWAGGER_TOOL_VERSION=v0.30.3 @@ -69,7 +69,7 @@ setup-swagger: setup_dev: setup-dev setup-dev: - pushd /tmp && echo "==> Installing goimport..." && go install golang.org/x/tools/cmd/goimports@latest && echo "==> Installation coverage tools..." && go install golang.org/x/tools/cmd/cover@latest && popd + pushd /tmp && echo "==> Installing goimport..." && go install golang.org/x/tools/cmd/goimports@v0.24.0 && echo "==> Installation coverage tools..." && go install golang.org/x/tools/cmd/cover@latest && popd @echo "==> Installing linter..." @# Latest releases: https://github.com/golangci/golangci-lint/releases