Skip to content

Commit 9584f0b

Browse files
committed
ci: update workflow to Go 1.22 and modern actions
- Use go-version-file to read from go.mod - Upgrade to actions/checkout@v4 and actions/setup-go@v5 - Remove deprecated dep/Gopkg.toml logic Made-with: Cursor
1 parent c171032 commit 9584f0b

1 file changed

Lines changed: 6 additions & 15 deletions

File tree

.github/workflows/go.yml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,13 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99

10-
- name: Set up Go 1.13
11-
uses: actions/setup-go@v1
12-
with:
13-
go-version: 1.13
14-
id: go
15-
16-
- name: Check out code into the Go module directory
17-
uses: actions/checkout@v1
10+
- name: Check out code
11+
uses: actions/checkout@v4
1812

19-
- name: Get dependencies
20-
run: |
21-
go get -v -t -d ./...
22-
if [ -f Gopkg.toml ]; then
23-
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
24-
dep ensure
25-
fi
13+
- name: Set up Go
14+
uses: actions/setup-go@v5
15+
with:
16+
go-version-file: go.mod
2617

2718
- name: Build
2819
run: go build -v .

0 commit comments

Comments
 (0)