@@ -21,47 +21,46 @@ jobs:
2121
2222 steps :
2323
24- - name : Set up Go ${{ matrix.go_version }}
25- uses : actions/setup-go@v2
26- with :
27- go-version : ${{ matrix.go_version }}
28- id : go
24+ - name : Set up Go ${{ matrix.go_version }}
25+ uses : actions/setup-go@v5.5.0
26+ with :
27+ go-version : ${{ matrix.go_version }}
28+ id : go
2929
30- - name : Check out code into the Go module directory
31- uses : actions/checkout@v2
30+ - name : Check out code into the Go module directory
31+ uses : actions/checkout@v4.3.0
3232
33- - name : Cache Go Dependence
34- uses : actions/cache@v2
35- with :
36- path : ~/go/pkg/mod
37- key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
38- restore-keys : ${{ runner.os }}-go-
33+ - name : Cache Go Dependence
34+ uses : actions/cache@v4
35+ with :
36+ path : ~/go/pkg/mod
37+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
38+ restore-keys : ${{ runner.os }}-go-
3939
40- - name : Get dependencies
41- run : |
42- if [ -f Gopkg.toml ]; then
43- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
44- dep ensure
45- else
46- go get -v -t -d ./...
47- fi
40+ - name : Get dependencies
41+ run : |
42+ if [ -f Gopkg.toml ]; then
43+ curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
44+ dep ensure
45+ else
46+ go get -v -t -d ./...
47+ fi
4848
49- - name : License Check
50- run : |
51- sh before_validate_license.sh
52- chmod u+x /tmp/tools/license/license-header-checker
53- go fmt ./... && [[ -z `git status -s` ]]
54- /tmp/tools/license/license-header-checker -v -a -r -i vendor /tmp/tools/license/license.txt . go && [[ -z `git status -s` ]]
49+ - name : License Check
50+ run : |
51+ sh before_validate_license.sh
52+ chmod u+x /tmp/tools/license/license-header-checker
53+ go fmt ./... && [[ -z `git status -s` ]]
54+ /tmp/tools/license/license-header-checker -v -a -r -i vendor /tmp/tools/license/license.txt . go && [[ -z `git status -s` ]]
5555
56- - name : Install go ci lint
57- run : curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.56.0
56+ - name : Install go ci lint
57+ run : curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.56.0
5858
59- - name : Run Linter
60- run : golangci-lint run --timeout=10m -v --disable-all --enable=govet --enable=staticcheck --enable=ineffassign --enable=misspell
59+ - name : Run Linter
60+ run : golangci-lint run --timeout=10m -v --disable-all --enable=govet --enable=staticcheck --enable=ineffassign --enable=misspell
6161
62- - name : Test
63- run : go mod vendor && go test $(go list ./... | grep -v vendor | grep -v demo) -coverprofile=coverage.txt -covermode=atomic
64-
65- - name : Coverage
66- run : bash <(curl -s https://codecov.io/bash)
62+ - name : Test
63+ run : go mod vendor && go test $(go list ./... | grep -v vendor | grep -v demo) -coverprofile=coverage.txt -covermode=atomic
6764
65+ - name : Coverage
66+ run : bash <(curl -s https://codecov.io/bash)
0 commit comments