From 732c7194bdd4cf47d0c34b826d7409bdd22b62b6 Mon Sep 17 00:00:00 2001 From: appleboy Date: Fri, 28 Nov 2025 21:47:08 +0800 Subject: [PATCH] ci: add dynamic Go version selection for CI testing - Enable testing across Go 1.24 and 1.25 using a matrix strategy - Update the container image to dynamically use the selected Go version Signed-off-by: appleboy --- .github/workflows/testing.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index cce1924..fd5381e 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -30,8 +30,11 @@ jobs: testing: runs-on: ubuntu-latest + strategy: + matrix: + go-version: ["1.24", "1.25"] container: - image: golang:1.23-alpine + image: golang:${{ matrix.go-version }}-alpine options: --sysctl net.ipv6.conf.all.disable_ipv6=0 steps: - name: Checkout repository