Skip to content

Commit f24bcf8

Browse files
committed
run workflow with different go versions
1 parent 6172301 commit f24bcf8

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

.github/workflows/go.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,24 @@ name: Go
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
pull_request:
7-
branches: [ main ]
7+
branches: [main]
88

99
jobs:
1010
e2e:
11+
strategy:
12+
matrix:
13+
go-version: ["=1.18", "^1.23"]
1114
runs-on: ubuntu-latest
1215
steps:
13-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4
1417

15-
- name: Set up Go
16-
uses: actions/setup-go@v2
17-
with:
18-
go-version: 1.18
18+
- name: Set up Go
19+
uses: actions/setup-go@v5
20+
with:
21+
go-version: ${{ matrix.go-version }}
1922

20-
- name: Test
21-
run: |
22-
go test *.go
23+
- name: Test
24+
run: |
25+
go test -v .

0 commit comments

Comments
 (0)