File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,37 +11,27 @@ jobs:
1111 runs-on : ubuntu-latest
1212 steps :
1313 - name : Checkout
14- uses : actions/checkout@v2
14+ uses : actions/checkout@v6
1515
1616 - name : Setup Go
17- uses : actions/setup-go@v2
18-
19- - name : Setup Dependencies
20- run : |
21- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sudo sh -s -- -b $GOPATH/bin
22- golangci-lint --version
23- go get golang.org/x/tools/cmd/cover
24- go get -t -v ./...
17+ uses : actions/setup-go@v6
2518
2619 - name : Golang CI Lint
27- run : golangci-lint run
20+ uses : golangci/golangci -lint-action@v9
2821
2922 Test :
3023 runs-on : ubuntu-latest
3124 steps :
3225 - name : Checkout
33- uses : actions/checkout@v2
26+ uses : actions/checkout@v6
3427
3528 - name : Setup Go
36- uses : actions/setup-go@v2
37-
38- - name : Setup Dependencies
39- run : |
40- go get golang.org/x/tools/cmd/cover
41- go get -t -v ./...
29+ uses : actions/setup-go@v6
4230
4331 - name : Run Tests
4432 run : go test -v -race -coverprofile=coverage.txt -covermode=atomic
4533
4634 - name : Upload coverage to Codecov
47- run : bash <(curl -s https://codecov.io/bash)
35+ uses : codecov/codecov-action@v6
36+ with :
37+ files : coverage.txt
You can’t perform that action at this time.
0 commit comments