Skip to content

Commit

Permalink
chore - support latest 3 minor versions of Go. cleanup makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Xopherus committed May 15, 2024
1 parent dc31b84 commit 6af2d15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
tests:
strategy:
matrix:
go-version: [1.17.x, 1.18.x]
go-version: [1.20.x, 1.21.x, 1.22.x]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
11 changes: 3 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
PACKAGES=$(shell go list ./...)

all: lint test

init: tools
init:
GO111MODULE=on go mod vendor

lint: init
Expand All @@ -11,10 +9,7 @@ lint: init
test: init
go test -race -v ./...

tools:
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(GOPATH)/bin v1.17.0

fmt:
go fmt $(PACKAGES)
go fmt ./...

.PHONY: help lint test fmt tools
.PHONY: help lint test fmt

0 comments on commit 6af2d15

Please sign in to comment.