File tree Expand file tree Collapse file tree 1 file changed +20
-20
lines changed Expand file tree Collapse file tree 1 file changed +20
-20
lines changed Original file line number Diff line number Diff line change 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+ ---
44name : Go
55
66on : [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
You can’t perform that action at this time.
0 commit comments