mirror of
https://github.com/appleboy/drone-ssh.git
synced 2026-06-04 18:24:01 +08:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user