@@ -12,11 +12,15 @@ permissions:
12
12
contents : read
13
13
jobs :
14
14
ci :
15
+ name : ci (go:${{ matrix.go-version.name }})
15
16
runs-on : ubuntu-latest
16
17
strategy :
17
18
matrix :
18
- # when editing this list, also update steps and jobs below
19
- go-version : [1.23.x, 1.24.x]
19
+ go-version :
20
+ - name : latest
21
+ version : 1.24.x
22
+ - name : previous
23
+ version : 1.23.x
20
24
steps :
21
25
- name : Checkout Code
22
26
uses : actions/checkout@v4
@@ -25,21 +29,26 @@ jobs:
25
29
- name : Install Go
26
30
uses : actions/setup-go@v5
27
31
with :
28
- go-version : ${{ matrix.go-version }}
32
+ go-version : ${{ matrix.go-version.version }}
29
33
- name : Unit Test
30
34
run : make shorttest
31
35
- name : Lint
32
36
# Often, lint & gofmt guidelines depend on the Go version. To prevent
33
37
# conflicting guidance, run only on the most recent supported version.
34
38
# For the same reason, only check generated code on the most recent
35
39
# supported version.
36
- if : matrix.go-version == '1.24.x '
40
+ if : matrix.go-version.name == 'latest '
37
41
run : make checkgenerate && make lint
38
42
conformance :
43
+ name : ci (go:${{ matrix.go-version.name }})
39
44
runs-on : ubuntu-latest
40
45
strategy :
41
46
matrix :
42
- go-version : [1.22.x, 1.23.x, 1.24.x]
47
+ go-version :
48
+ - name : latest
49
+ version : 1.24.x
50
+ - name : previous
51
+ version : 1.23.x
43
52
steps :
44
53
- name : Checkout Code
45
54
uses : actions/checkout@v4
48
57
- name : Install Go
49
58
uses : actions/setup-go@v5
50
59
with :
51
- go-version : ${{ matrix.go-version }}
60
+ go-version : ${{ matrix.go-version.version }}
52
61
- name : Run Conformance Tests
53
62
run : make runconformance
54
63
slowtest :
0 commit comments