Skip to content

Commit dd597d9

Browse files
authored
chore: update go versions (#4)
1 parent 46eaa6f commit dd597d9

File tree

3 files changed

+14
-16
lines changed

3 files changed

+14
-16
lines changed

.github/workflows/go.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
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
@@ -36,13 +36,7 @@ jobs:
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

Makefile

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,27 @@
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/[email protected]
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 ./...

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/gkampitakis/go-diff
22

3-
go 1.16
3+
go 1.20

0 commit comments

Comments
 (0)