44 build :
55 strategy :
66 matrix :
7- go-versions : [1.13 .x]
7+ go-versions : [1.18 .x]
88 platform : [windows-latest]
99 runs-on : ${{ matrix.platform }}
1010 steps :
1111 - name : Install Go
12- uses : actions/setup-go@v1
12+ uses : actions/setup-go@v3
1313 with :
14- go-version : ${{ matrix.go-version }}
14+ go-version : ${{ matrix.go-versions }}
1515 - name : Checkout code
16- uses : actions/checkout@v2
16+ uses : actions/checkout@v3
1717 - name : Build
1818 run : |
1919 go build ./...
@@ -24,45 +24,47 @@ jobs:
2424 test :
2525 strategy :
2626 matrix :
27- go-versions : [1.12.x, 1.13.x, 1.14 .x]
27+ go-versions : [1.18 .x]
2828 platform : [ubuntu-latest, macos-latest]
2929 runs-on : ${{ matrix.platform }}
3030 steps :
3131 - name : Install Go
32- uses : actions/setup-go@v1
32+ uses : actions/setup-go@v3
3333 with :
34- go-version : ${{ matrix.go-version }}
34+ go-version : ${{ matrix.go-versions }}
3535 - name : Checkout code
36- uses : actions/checkout@v2
36+ uses : actions/checkout@v3
3737 - name : Test
3838 run : |
3939 make test
4040 lint :
4141 runs-on : ubuntu-latest
4242 steps :
4343 - name : Install Go
44- uses : actions/setup-go@v1
44+ uses : actions/setup-go@v3
45+ with :
46+ go-version : 1.18.x
4547 - name : Checkout code
46- uses : actions/checkout@v2
48+ uses : actions/checkout@v3
4749 - name : Lint
4850 run : |
4951 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 \
52+ golangci/golangci-lint:v1.45.0 golangci-lint run --disable-all -v \
5153 -E govet -E misspell -E gofmt -E ineffassign -E golint
5254 apidiff :
5355 runs-on : ubuntu-latest
5456 if : github.base_ref
5557 steps :
5658 - name : Install Go
57- uses : actions/setup-go@v1
59+ uses : actions/setup-go@v3
5860 with :
59- go-version : 1.13 .x
61+ go-version : 1.18 .x
6062 - name : Add GOBIN to PATH
6163 run : echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
6264 - name : Install dependencies
6365 run : go get golang.org/x/exp/cmd/apidiff
6466 - name : Checkout old code
65- uses : actions/checkout@v2
67+ uses : actions/checkout@v3
6668 with :
6769 ref : ${{ github.base_ref }}
6870 path : " old"
0 commit comments