From 228c66817cca0d26ccc02c10429384286b457629 Mon Sep 17 00:00:00 2001 From: Tugdual Saunier Date: Sun, 30 Mar 2025 15:21:13 +0200 Subject: [PATCH] Switch CI to a Go versions matrix This repository is a package, not a end-user application. As such we should not test only a specific Go version as we don't control the version that is going to be in use. --- .github/workflows/test.yaml | 15 +++++++++++++-- go.mod | 2 +- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index d513f06..2a36d3c 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -7,7 +7,18 @@ on: jobs: test: runs-on: ubuntu-latest - name: Tests + strategy: + matrix: + go: + - '1.17' + - '1.18' + - '1.19' + - '1.20' + - '1.21' + - '1.22' + - '1.23' + - '1.24' + name: Go ${{ matrix.go }} test steps: - name: Checkout @@ -16,7 +27,7 @@ jobs: name: Setup Go uses: actions/setup-go@v5 with: - go-version-file: 'go.mod' + go-version: ${{ matrix.go }} - name: Run tests run: go test ./... diff --git a/go.mod b/go.mod index a66766a..103e99b 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/symfony-cli/console -go 1.22.4 +go 1.17 require ( github.com/agext/levenshtein v1.2.3