4
4
build :
5
5
strategy :
6
6
matrix :
7
- go-versions : [1.13 .x]
7
+ go-versions : [1.18 .x]
8
8
platform : [windows-latest]
9
9
runs-on : ${{ matrix.platform }}
10
10
steps :
11
11
- name : Install Go
12
- uses : actions/setup-go@v1
12
+ uses : actions/setup-go@v3
13
13
with :
14
- go-version : ${{ matrix.go-version }}
14
+ go-version : ${{ matrix.go-versions }}
15
15
- name : Checkout code
16
- uses : actions/checkout@v2
16
+ uses : actions/checkout@v3
17
17
- name : Build
18
18
run : |
19
19
go build ./...
@@ -24,45 +24,47 @@ jobs:
24
24
test :
25
25
strategy :
26
26
matrix :
27
- go-versions : [1.12.x, 1.13.x, 1.14 .x]
27
+ go-versions : [1.18 .x]
28
28
platform : [ubuntu-latest, macos-latest]
29
29
runs-on : ${{ matrix.platform }}
30
30
steps :
31
31
- name : Install Go
32
- uses : actions/setup-go@v1
32
+ uses : actions/setup-go@v3
33
33
with :
34
- go-version : ${{ matrix.go-version }}
34
+ go-version : ${{ matrix.go-versions }}
35
35
- name : Checkout code
36
- uses : actions/checkout@v2
36
+ uses : actions/checkout@v3
37
37
- name : Test
38
38
run : |
39
39
make test
40
40
lint :
41
41
runs-on : ubuntu-latest
42
42
steps :
43
43
- name : Install Go
44
- uses : actions/setup-go@v1
44
+ uses : actions/setup-go@v3
45
+ with :
46
+ go-version : 1.18.x
45
47
- name : Checkout code
46
- uses : actions/checkout@v2
48
+ uses : actions/checkout@v3
47
49
- name : Lint
48
50
run : |
49
- docker run --rm -v `pwd`:/go/src/k8s.io/klog -w /go/src/k8s.io/klog \
50
- golangci/golangci-lint:v1.23.8 golangci-lint run --disable-all -v \
51
+ docker run --rm -v `pwd`:/go/src/k8s.io/util -w /go/src/k8s.io/util \
52
+ golangci/golangci-lint:v1.45.0 golangci-lint run --go 1.18 --disable-all -v \
51
53
-E govet -E misspell -E gofmt -E ineffassign -E golint
52
54
apidiff :
53
55
runs-on : ubuntu-latest
54
56
if : github.base_ref
55
57
steps :
56
58
- name : Install Go
57
- uses : actions/setup-go@v1
59
+ uses : actions/setup-go@v3
58
60
with :
59
- go-version : 1.13 .x
61
+ go-version : 1.18 .x
60
62
- name : Add GOBIN to PATH
61
63
run : echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
62
64
- name : Install dependencies
63
- run : go get golang.org/x/exp/cmd/apidiff
65
+ run : go install golang.org/x/exp/cmd/apidiff@latest
64
66
- name : Checkout old code
65
- uses : actions/checkout@v2
67
+ uses : actions/checkout@v3
66
68
with :
67
69
ref : ${{ github.base_ref }}
68
70
path : " old"
0 commit comments