@@ -10,17 +10,17 @@ jobs:
1010 test :
1111 strategy :
1212 matrix :
13- go-version : [1.21 .x]
13+ go-version : [1.25 .x]
1414 platform : [ubuntu-latest]
1515 runs-on : ${{ matrix.platform }}
1616 steps :
1717 - name : Install Go
1818 if : success()
19- uses : actions/setup-go@v1
19+ uses : actions/setup-go@v5
2020 with :
2121 go-version : ${{ matrix.go-version }}
2222 - name : Checkout code
23- uses : actions/checkout@v1
23+ uses : actions/checkout@v4
2424 - name : Run tests
2525 run : make test
2626 detectsecrets :
@@ -44,42 +44,38 @@ jobs:
4444 steps :
4545 - name : Install Go
4646 if : success()
47- uses : actions/setup-go@v1
47+ uses : actions/setup-go@v5
4848 with :
49- go-version : 1.21 .x
49+ go-version : 1.25 .x
5050 - name : Checkout code
51- uses : actions/checkout@v1
51+ uses : actions/checkout@v4
5252 - name : Calc coverage
5353 run : |
5454 export PATH=$PATH:$(go env GOPATH)/bin
55- go get -v -t -d ./...
55+ go mod vendor
5656 go test -v `go list ./... | grep -v '/vendor/'` -covermode=count -coverprofile=coverage.out
5757 # Required because the coverage.out file on github actions has a path that breaks gcov2lcov
5858 sed -i "s/$(pwd|sed 's/\//\\\//g')/./g" coverage.out
59- - name : Convert coverage to lcov
60- uses :
jandelgado/[email protected] 61- with :
62- infile : coverage.out
63- outfile : coverage.lcov
64- - name : Coveralls
65- uses : coverallsapp/github-action@master
59+ - name : Coveralls Report
60+ uses :
coverallsapp/[email protected] 6661 with :
6762 github-token : ${{ secrets.github_token }}
68- path-to-lcov : coverage.lcov
63+ file : coverage.out
64+ format : golang
6965
7066 build :
7167 name : Build
7268 runs-on : ubuntu-latest
7369 steps :
7470
75- - name : Set up Go 1.21
76- uses : actions/setup-go@v1
71+ - name : Set up Go
72+ uses : actions/setup-go@v5
7773 with :
78- go-version : 1.21
74+ go-version : 1.25
7975 id : go
8076
8177 - name : Check out code into the Go module directory
82- uses : actions/checkout@v2
78+ uses : actions/checkout@v4
8379
8480 - name : Get dependencies
8581 run : |
0 commit comments