File tree Expand file tree Collapse file tree 3 files changed +14
-16
lines changed Expand file tree Collapse file tree 3 files changed +14
-16
lines changed Original file line number Diff line number Diff line change 2121 steps :
2222 - uses : actions/setup-go@v3
2323 with :
24- go-version : 1.19 .x
24+ go-version : 1.20 .x
2525 - uses : actions/checkout@v3
2626 - name : golangci-lint
2727 uses : golangci/golangci-lint-action@v3
3636 runs-on : ubuntu-latest
3737 strategy :
3838 matrix :
39- go :
40- [
41- " 1.16.x" ,
42- " 1.17.x" ,
43- " 1.18.x" ,
44- " 1.19.x" ,
45- ]
39+ go : ["1.18.x", "1.19.x", "1.20.x"]
4640 steps :
4741 - uses : actions/checkout@v3
4842 - name : Setup go
Original file line number Diff line number Diff line change 1- .PHONY : install-tools lint test test-verbose format benchmark
1+ .PHONY : help install-tools lint test test-verbose format benchmark
2+ .SILENT : help install-tools lint test test-verbose format benchmark
23
3- install-tools :
4+ help :
5+ grep -E ' ^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST ) | awk ' BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
6+
7+ install-tools : # # Install linting tools
48 # Install linting tools
59 go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.49.0
610 go install mvdan.cc/gofumpt@latest
711 go install github.com/segmentio/golines@latest
812
9- lint :
13+ lint : # # Run golangci linter
1014 golangci-lint run -c ./golangci.yml ./...
1115
12- format :
16+ format : # # Format code
1317 gofumpt -l -w -extra .
1418 golines . -w
1519
16- test :
20+ test : # # Run tests
1721 go test -race -test.timeout 120s -count=1 ./...
1822
19- test-verbose :
23+ test-verbose : # # Run tests with verbose output
2024 go test -race -test.timeout 120s -v -cover -count=1 ./...
2125
22- benchmark :
26+ benchmark : # # Run benchmarks
2327 go test -bench=. -benchmem ./...
Original file line number Diff line number Diff line change 11module github.com/gkampitakis/go-diff
22
3- go 1.16
3+ go 1.20
You can’t perform that action at this time.
0 commit comments