6
6
pull_request :
7
7
8
8
env :
9
- GO_VERSION : 1.18
9
+ GO_VERSION : 1.19
10
10
11
11
jobs :
12
12
# Check if there any dirty change for go mod tidy
13
13
go-mod :
14
14
runs-on : ubuntu-latest
15
15
steps :
16
16
- name : Install Go
17
- uses : actions/setup-go@v2
17
+ uses : actions/setup-go@v3
18
18
with :
19
- # stable: 'false' # Keep this line to be able to use rc and beta version of Go (ex: 1.18.0-rc1).
19
+ # https://github.com/actions/setup-go#supported-version-syntax
20
+ # ex:
21
+ # - 1.18beta1 -> 1.18.0-beta.1
22
+ # - 1.18rc1 -> 1.18.0-rc.1
20
23
go-version : ${{ env.GO_VERSION }}
21
24
- name : Checkout code
22
25
uses : actions/checkout@v3
@@ -32,13 +35,16 @@ jobs:
32
35
steps :
33
36
- uses : actions/checkout@v3
34
37
- name : Install Go
35
- uses : actions/setup-go@v2
38
+ uses : actions/setup-go@v3
36
39
with :
37
- go-version : 1.17 # TODO(ldez) the binary compiled with go1.17 doesn't work on go1.18
38
- # stable: 'false' # Keep this line to be able to use rc and beta version of Go (ex: 1.18.0-rc1).
39
- # go-version: ${{ env.GO_VERSION }} # TODO(ldez) the binary compiled with go1.17 doesn't work on go1.18
40
+ # https://github.com/actions/setup-go#supported-version-syntax
41
+ # ex:
42
+ # - 1.18beta1 -> 1.18.0-beta.1
43
+ # - 1.18rc1 -> 1.18.0-rc.1
44
+ # go-version: ${{ env.GO_VERSION }} # todo(ldez) uncomment after the next release v1.48.0
45
+ go-version : 1.18
40
46
- name : lint
41
- uses : golangci/golangci-lint-action@v3.1 .0
47
+ uses : golangci/golangci-lint-action@v3.2 .0
42
48
with :
43
49
version : latest
44
50
# skip cache because of flaky behaviors
51
57
steps :
52
58
- uses : actions/checkout@v3
53
59
- name : Install Go
54
- uses : actions/setup-go@v2
60
+ uses : actions/setup-go@v3
55
61
with :
56
- # stable: 'false' # Keep this line to be able to use rc and beta version of Go (ex: 1.18.0-rc1).
62
+ # https://github.com/actions/setup-go#supported-version-syntax
63
+ # ex:
64
+ # - 1.18beta1 -> 1.18.0-beta.1
65
+ # - 1.18rc1 -> 1.18.0-rc.1
57
66
go-version : ${{ env.GO_VERSION }} # test only the latest go version to speed up CI
58
67
- name : Run tests
59
68
run : make.exe test
65
74
steps :
66
75
- uses : actions/checkout@v3
67
76
- name : Install Go
68
- uses : actions/setup-go@v2
77
+ uses : actions/setup-go@v3
69
78
with :
70
- # stable: 'false' # Keep this line to be able to use rc and beta version of Go (ex: 1.18.0-rc1).
79
+ # https://github.com/actions/setup-go#supported-version-syntax
80
+ # ex:
81
+ # - 1.18beta1 -> 1.18.0-beta.1
82
+ # - 1.18rc1 -> 1.18.0-rc.1
71
83
go-version : ${{ env.GO_VERSION }} # test only the latest go version to speed up CI
72
84
- name : Run tests
73
85
run : make test
@@ -78,14 +90,17 @@ jobs:
78
90
strategy :
79
91
matrix :
80
92
golang :
81
- - 1.17
82
93
- 1.18
94
+ - 1.19
83
95
steps :
84
96
- uses : actions/checkout@v3
85
97
- name : Install Go
86
- uses : actions/setup-go@v2
98
+ uses : actions/setup-go@v3
87
99
with :
88
- # stable: 'false' # Keep this line to be able to use rc and beta version of Go (ex: 1.18.0-rc1).
100
+ # https://github.com/actions/setup-go#supported-version-syntax
101
+ # ex:
102
+ # - 1.18beta1 -> 1.18.0-beta.1
103
+ # - 1.18rc1 -> 1.18.0-rc.1
89
104
go-version : ${{ matrix.golang }}
90
105
- uses : actions/cache@v3
91
106
with :
@@ -107,9 +122,12 @@ jobs:
107
122
- name : Unshallow
108
123
run : git fetch --prune --unshallow
109
124
- name : Install Go
110
- uses : actions/setup-go@v2
125
+ uses : actions/setup-go@v3
111
126
with :
112
- # stable: 'false' # Keep this line to be able to use rc and beta version of Go (ex: 1.18.0-rc1).
127
+ # https://github.com/actions/setup-go#supported-version-syntax
128
+ # ex:
129
+ # - 1.18beta1 -> 1.18.0-beta.1
130
+ # - 1.18rc1 -> 1.18.0-rc.1
113
131
go-version : ${{ env.GO_VERSION }}
114
132
- name : Check generated files are up to date
115
133
run : make fast_check_generated
0 commit comments