Skip to content

Commit e9f46c2

Browse files
authored
chore: test on multi go versions (#445)
1 parent 266436b commit e9f46c2

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,22 @@ jobs:
1010

1111
test:
1212
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
go:
16+
- '1.18'
17+
- '1.19'
18+
- '1.20'
19+
- '1.21'
20+
- '1.22'
21+
- '1.x'
1322
steps:
1423
- uses: actions/checkout@v2
1524

1625
- name: Set up Go
1726
uses: actions/setup-go@v2
1827
with:
19-
go-version: 1.18
28+
go-version: ${{ matrix.go }}
2029
stable: false
2130

2231
- name: Build
@@ -35,3 +44,4 @@ jobs:
3544
file: ./cover.out
3645
flags: unittests
3746
verbose: true
47+
if: matrix.go == '1.18'

0 commit comments

Comments
 (0)