Skip to content

Commit 952e8e0

Browse files
committed
.github: update the workflow runner
1 parent 23ff88c commit 952e8e0

3 files changed

Lines changed: 15 additions & 18 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,14 @@ jobs:
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'

Makefile

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,28 @@
22

33
SHELL = /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

1011
UNAME := $(shell uname)
1112

1213
test:
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

2728
force: ;
2829

go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module github.com/kevinburke/hostsfile
2+
3+
go 1.24.0

0 commit comments

Comments
 (0)