-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bumped go to 1.19 & added github actions
- Loading branch information
1 parent
22b2312
commit f260c4a
Showing
10 changed files
with
180 additions
and
144 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
SHELL := /bin/bash | ||
|
||
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set) | ||
ifeq (,$(shell go env GOBIN)) | ||
GOBIN=$(shell go env GOPATH)/bin | ||
else | ||
GOBIN=$(shell go env GOBIN) | ||
endif | ||
|
||
# LINT is the path to the golangci-lint binary | ||
LINT = $(shell which golangci-lint) | ||
|
||
.PHONY: golangci-lint | ||
golangci-lint: | ||
ifeq (, $(LINT)) | ||
ifeq (, $(shell which golangci-lint)) | ||
@{ \ | ||
set -e ;\ | ||
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest ;\ | ||
} | ||
override LINT=$(GOBIN)/golangci-lint | ||
else | ||
override LINT=$(shell which golangci-lint) | ||
endif | ||
endif | ||
|
||
.PHONY: verify | ||
verify: golangci-lint | ||
$(LINT) run | ||
|
||
.PHONY: test | ||
test: | ||
go test -race --coverprofile=coverage.coverprofile --covermode=atomic -v ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module github.com/gorilla/mux | ||
|
||
go 1.12 | ||
go 1.19 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.