From 7670222ef32edcd122d46b16c5edaf2ecc0834f9 Mon Sep 17 00:00:00 2001 From: toimtoimtoim Date: Wed, 12 Feb 2025 19:11:22 +0200 Subject: [PATCH] CI: test with Go 1.24 --- .github/workflows/checks.yml | 2 +- .github/workflows/echo.yml | 4 ++-- Makefile | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 027b5de55..44dac6679 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -14,7 +14,7 @@ permissions: env: # run static analysis only with the latest Go version - LATEST_GO_VERSION: "1.23" + LATEST_GO_VERSION: "1.24" jobs: check: diff --git a/.github/workflows/echo.yml b/.github/workflows/echo.yml index ef83dfcd0..6741bf886 100644 --- a/.github/workflows/echo.yml +++ b/.github/workflows/echo.yml @@ -14,7 +14,7 @@ permissions: env: # run coverage and benchmarks only with the latest Go version - LATEST_GO_VERSION: "1.23" + LATEST_GO_VERSION: "1.24" jobs: test: @@ -25,7 +25,7 @@ jobs: # Echo tests with last four major releases (unless there are pressing vulnerabilities) # As we depend on `golang.org/x/` libraries which only support last 2 Go releases we could have situations when # we derive from last four major releases promise. - go: ["1.20", "1.21", "1.22", "1.23"] + go: ["1.21", "1.22", "1.23", "1.24"] name: ${{ matrix.os }} @ Go ${{ matrix.go }} runs-on: ${{ matrix.os }} steps: diff --git a/Makefile b/Makefile index c07d8bb45..7f4a2207e 100644 --- a/Makefile +++ b/Makefile @@ -31,6 +31,6 @@ benchmark: ## Run benchmarks help: ## Display this help screen @grep -h -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' -goversion ?= "1.20" -test_version: ## Run tests inside Docker with given version (defaults to 1.20 oldest supported). Example: make test_version goversion=1.20 +goversion ?= "1.21" +test_version: ## Run tests inside Docker with given version (defaults to 1.21 oldest supported). Example: make test_version goversion=1.21 @docker run --rm -it -v $(shell pwd):/project golang:$(goversion) /bin/sh -c "cd /project && make init check"