File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 test :
55 strategy :
66 matrix :
7- go-version : [1.18.x ]
7+ go-version : ['1.24.x', '1.25.x' ]
88 platform : [ubuntu-latest]
99 runs-on : ${{ matrix.platform }}
1010 steps :
11+ - uses : actions/checkout@v6
1112 - name : Install Go
12- uses : actions/setup-go@v2
13+ uses : actions/setup-go@v6
1314 with :
1415 go-version : ${{ matrix.go-version }}
15- - uses : actions/checkout@v2
16- with :
17- path : ' ./src/github.com/kevinburke/hostsfile'
18- # staticcheck needs this for GOPATH
19- - run : echo "GOPATH=$GITHUB_WORKSPACE" >> $GITHUB_ENV
20- - run : echo "GO111MODULE=off" >> $GITHUB_ENV
21- - run : echo "PATH=$GITHUB_WORKSPACE/bin:$PATH" >> $GITHUB_ENV
2216 - name : Run tests
2317 run : make race-test
24- working-directory : ' ./src/github.com/kevinburke/hostsfile'
Original file line number Diff line number Diff line change 22
33SHELL = /bin/bash -o pipefail
44
5- BUMP_VERSION := $(GOPATH ) /bin/bump_version
6- STATICCHECK := $(GOPATH ) /bin/staticcheck
7- RELEASE := $(GOPATH ) /bin/github-release
8- WRITE_MAILMAP := $(GOPATH ) /bin/write_mailmap
5+ GOBIN := $(shell go env GOPATH) /bin
6+ BUMP_VERSION := $(GOBIN ) /bump_version
7+ STATICCHECK := $(GOBIN ) /staticcheck
8+ RELEASE := $(GOBIN ) /github-release
9+ WRITE_MAILMAP := $(GOBIN ) /write_mailmap
910
1011UNAME := $(shell uname)
1112
1213test :
1314 go test ./...
1415
1516$(STATICCHECK ) :
16- go get honnef.co/go/tools/cmd/staticcheck
17+ go install honnef.co/go/tools/cmd/staticcheck@latest
1718
1819$(BUMP_VERSION ) :
19- go get -u github.com/kevinburke/bump_version
20+ go install github.com/kevinburke/bump_version@latest
2021
2122$(RELEASE ) :
22- go get -u github.com/aktau/github-release
23+ go install github.com/aktau/github-release@latest
2324
2425$(WRITE_MAILMAP ) :
25- go get -u github.com/kevinburke/write_mailmap
26+ go install github.com/kevinburke/write_mailmap@latest
2627
2728force : ;
2829
Original file line number Diff line number Diff line change 1+ module github.com/kevinburke/hostsfile
2+
3+ go 1.24.0
You can’t perform that action at this time.
0 commit comments