Skip to content

Commit afd7255

Browse files
Copilotziflex
andcommitted
Update build pipeline to use Go 1.21 and modern GitHub Actions
Co-authored-by: ziflex <[email protected]>
1 parent 213c4fd commit afd7255

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@ jobs:
1111
name: Build
1212
runs-on: ubuntu-latest
1313
steps:
14+
- name: Check out code into the Go module directory
15+
uses: actions/checkout@v4
16+
1417
- name: Set up Go 1.x
15-
uses: actions/setup-go@v2
18+
uses: actions/setup-go@v5
1619
with:
17-
go-version: ^1.17
20+
go-version: ^1.21
1821
id: go
1922

2023
- name: Set up linter
21-
run: go get -u github.com/mgechev/revive
22-
23-
- name: Check out code into the Go module directory
24-
uses: actions/checkout@v2
24+
run: go install github.com/mgechev/revive@latest
2525

2626
- name: Get dependencies
27-
run: go get -v -t -d ./...
27+
run: go mod download
2828

2929
- name: Lint
3030
run: revive -config revive.toml -formatter stylish -exclude ./vendor/... ./...

0 commit comments

Comments
 (0)