Skip to content

Commit 45bbed2

Browse files
committed
Test with Go 1.23
1 parent 624519c commit 45bbed2

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

.github/workflows/go.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This workflow will build a golang project
22
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
3-
3+
---
44
name: Go
55

66
on: [push, pull_request]
@@ -14,24 +14,24 @@ jobs:
1414
build:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v3
1818

19-
- name: Set up Go
20-
uses: actions/setup-go@v4
21-
with:
22-
go-version: '1.20'
19+
- name: Set up Go
20+
uses: actions/setup-go@v4
21+
with:
22+
go-version: '1.23'
2323

24-
- name: Build
25-
run: go build -v
26-
- name: Test
27-
run: |
28-
set -e
29-
sudo apt-get -qq update && sudo apt-get install -y shellcheck
30-
go install github.com/go-critic/go-critic/cmd/gocritic@latest
31-
go install golang.org/x/tools/cmd/goimports@latest
32-
go install golang.org/x/lint/golint@latest
33-
go install github.com/gordonklaus/ineffassign@latest
34-
pip install pre-commit
35-
pre-commit install
36-
pre-commit run --all-files
37-
go test -v
24+
- name: Build
25+
run: go build -v
26+
- name: Test
27+
run: |
28+
set -e
29+
sudo apt-get -qq update && sudo apt-get install -y shellcheck
30+
go install github.com/go-critic/go-critic/cmd/gocritic@latest
31+
go install golang.org/x/tools/cmd/goimports@latest
32+
go install golang.org/x/lint/golint@latest
33+
go install github.com/gordonklaus/ineffassign@latest
34+
pip install pre-commit
35+
pre-commit install
36+
pre-commit run --all-files
37+
go test -v

0 commit comments

Comments
 (0)