Skip to content

Commit c05f6ef

Browse files
authored
Merge pull request #24 from tucksaun/go-matrix
Switch CI to a Go versions matrix
2 parents 913bd94 + 228c668 commit c05f6ef

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

.github/workflows/test.yaml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,18 @@ on:
77
jobs:
88
test:
99
runs-on: ubuntu-latest
10-
name: Tests
10+
strategy:
11+
matrix:
12+
go:
13+
- '1.17'
14+
- '1.18'
15+
- '1.19'
16+
- '1.20'
17+
- '1.21'
18+
- '1.22'
19+
- '1.23'
20+
- '1.24'
21+
name: Go ${{ matrix.go }} test
1122
steps:
1223
-
1324
name: Checkout
@@ -16,7 +27,7 @@ jobs:
1627
name: Setup Go
1728
uses: actions/setup-go@v5
1829
with:
19-
go-version-file: 'go.mod'
30+
go-version: ${{ matrix.go }}
2031
-
2132
name: Run tests
2233
run: go test ./...

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/symfony-cli/console
22

3-
go 1.22.4
3+
go 1.17
44

55
require (
66
github.com/agext/levenshtein v1.2.3

0 commit comments

Comments
 (0)