Skip to content

Commit 732c719

Browse files
committed
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 <appleboy.tw@gmail.com>
1 parent 8de6c4f commit 732c719

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/testing.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ jobs:
3030

3131
testing:
3232
runs-on: ubuntu-latest
33+
strategy:
34+
matrix:
35+
go-version: ["1.24", "1.25"]
3336
container:
34-
image: golang:1.23-alpine
37+
image: golang:${{ matrix.go-version }}-alpine
3538
options: --sysctl net.ipv6.conf.all.disable_ipv6=0
3639
steps:
3740
- name: Checkout repository

0 commit comments

Comments
 (0)