From 380af8059415f8837beb7ed3f798957f451d3f61 Mon Sep 17 00:00:00 2001 From: Tatiana Nesterenko Date: Thu, 29 Feb 2024 13:30:16 +0000 Subject: [PATCH 1/2] .github: Fix Go version in `build_cli` job Because we need builds to use the latest and greatest Go. Signed-off-by: Tatiana Nesterenko --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1f898bb..e5c222f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,7 +32,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version-file: 'go.mod' + go-version: '1.22' cache: true - name: Update Go modules From 5411193c502bd0b87880dee29b9f9c1e352efa18 Mon Sep 17 00:00:00 2001 From: Tatiana Nesterenko Date: Thu, 29 Feb 2024 13:48:21 +0000 Subject: [PATCH 2/2] .github: Use Go version from `go.mod` in `lint` job Linter should be set up for the minimum supported version, otherwise, it can report some bugs that aren't relevant for the current Go version. Signed-off-by: Tatiana Nesterenko --- .github/workflows/go.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 67219e9..f1a6b89 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -17,6 +17,11 @@ jobs: - name: Check out code uses: actions/checkout@v4 + - name: Set up Go from go.mod + uses: actions/setup-go@v5 + with: + go-version-file: 'go.mod' + - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: