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 21
21
steps :
22
22
- uses : actions/setup-go@v3
23
23
with :
24
- go-version : 1.19 .x
24
+ go-version : 1.20 .x
25
25
- uses : actions/checkout@v3
26
26
- name : golangci-lint
27
27
uses : golangci/golangci-lint-action@v3
36
36
runs-on : ubuntu-latest
37
37
strategy :
38
38
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"]
46
40
steps :
47
41
- uses : actions/checkout@v3
48
42
- 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
2
3
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
4
8
# Install linting tools
5
9
go install github.com/golangci/golangci-lint/cmd/
[email protected]
6
10
go install mvdan.cc/gofumpt@latest
7
11
go install github.com/segmentio/golines@latest
8
12
9
- lint :
13
+ lint : # # Run golangci linter
10
14
golangci-lint run -c ./golangci.yml ./...
11
15
12
- format :
16
+ format : # # Format code
13
17
gofumpt -l -w -extra .
14
18
golines . -w
15
19
16
- test :
20
+ test : # # Run tests
17
21
go test -race -test.timeout 120s -count=1 ./...
18
22
19
- test-verbose :
23
+ test-verbose : # # Run tests with verbose output
20
24
go test -race -test.timeout 120s -v -cover -count=1 ./...
21
25
22
- benchmark :
26
+ benchmark : # # Run benchmarks
23
27
go test -bench=. -benchmem ./...
Original file line number Diff line number Diff line change 1
1
module github.com/gkampitakis/go-diff
2
2
3
- go 1.16
3
+ go 1.20
You can’t perform that action at this time.
0 commit comments