-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: adds support for Go 1.22 and 1.23
- Loading branch information
1 parent
6d18dae
commit 566a52e
Showing
9 changed files
with
66 additions
and
184 deletions.
There are no files selected for viewing
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
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
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,29 @@ | ||
PROJECT_NAME := "alchemist" | ||
GO_BIN := `go env GOPATH` / "bin" | ||
DIST_PATH := "dist" | ||
|
||
# Build the project | ||
build: | ||
go build -o {{DIST_PATH}}/{{PROJECT_NAME}} | ||
|
||
# Clean the project | ||
clean: | ||
rm -rf vendor | ||
rm {{DIST_PATH}} | ||
|
||
# Get test coverage and open it in a browser | ||
coverage: | ||
go clean -testcache && go test ./... -coverprofile=covprofile && go tool cover -html=covprofile | ||
|
||
# Install globally from source | ||
install: | ||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b {{GO_BIN}} v1.60.1 | ||
go mod vendor | ||
|
||
# Lint the project | ||
lint: | ||
{{GO_BIN}}/golangci-lint run | ||
|
||
# Test the project | ||
test: | ||
go clean -testcache && go test ./... |
This file was deleted.
Oops, something went wrong.
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