Skip to content

Commit

Permalink
Updated labels, mergify, makefile, badge
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Aug 18, 2021
1 parent 43858a3 commit 37c4bff
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 deletions.
11 changes: 10 additions & 1 deletion .github/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,13 @@
name: "update"
- color: FFA500
description: "Any significant refactoring"
name: "refactor"
name: "refactor"
- color: FEF2C0
description: "Used for automatic merging"
name: "automerge"
- color: FBCA04
description: "Used for denoting a WIP, stops auto-merge"
name: "work-in-progress"
- color: c2e0c6
description: "Old, unused, stale"
name: "stale"
File renamed without changes.
14 changes: 10 additions & 4 deletions .make/go.mk
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ DARWIN=$(BINARY_NAME)-darwin
LINUX=$(BINARY_NAME)-linux
WINDOWS=$(BINARY_NAME)-windows.exe

.PHONY: test lint vet install
.PHONY: test lint vet install generate

bench: ## Run all benchmarks in the Go application
@go test -bench=. -benchmem
Expand All @@ -27,6 +27,9 @@ clean-mods: ## Remove all the Go mod cache
coverage: ## Shows the test coverage
@go test -coverprofile=coverage.out ./... && go tool cover -func=coverage.out

generate: ## Runs the go generate command in the base of the repo
@go generate -v

godocs: ## Sync the latest tag with GoDocs
@test $(GIT_DOMAIN)
@test $(REPO_OWNER)
Expand All @@ -42,11 +45,11 @@ install-go: ## Install the application (Using Native Go)

lint: ## Run the golangci-lint application (install if not found)
@#Travis (has sudo)
@if [ "$(shell command -v golangci-lint)" = "" ] && [ $(TRAVIS) ]; then curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.41.1 && sudo cp ./bin/golangci-lint $(go env GOPATH)/bin/; fi;
@if [ "$(shell command -v golangci-lint)" = "" ] && [ $(TRAVIS) ]; then curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.42.0 && sudo cp ./bin/golangci-lint $(go env GOPATH)/bin/; fi;
@#AWS CodePipeline
@if [ "$(shell command -v golangci-lint)" = "" ] && [ "$(CODEBUILD_BUILD_ID)" != "" ]; then curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.41.1; fi;
@if [ "$(shell command -v golangci-lint)" = "" ] && [ "$(CODEBUILD_BUILD_ID)" != "" ]; then curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.42.0; fi;
@#Github Actions
@if [ "$(shell command -v golangci-lint)" = "" ] && [ "$(GITHUB_WORKFLOW)" != "" ]; then curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sudo sh -s -- -b $(go env GOPATH)/bin v1.41.1; fi;
@if [ "$(shell command -v golangci-lint)" = "" ] && [ "$(GITHUB_WORKFLOW)" != "" ]; then curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sudo sh -s -- -b $(go env GOPATH)/bin v1.42.0; fi;
@#Brew - MacOS
@if [ "$(shell command -v golangci-lint)" = "" ] && [ "$(shell command -v brew)" != "" ]; then brew install golangci-lint; fi;
@echo "running golangci-lint..."
Expand All @@ -57,6 +60,9 @@ test: ## Runs vet, lint and ALL tests
@echo "running tests..."
@go test ./... -v

test-unit: ## Runs tests and outputs coverage
@go test ./... -race -coverprofile=coverage.txt -covermode=atomic

test-short: ## Runs vet, lint and tests (excludes integration tests)
@$(MAKE) lint
@echo "running tests (short)..."
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
[![Report](https://goreportcard.com/badge/github.com/BitcoinSchema/go-aip?style=flat&v=3)](https://goreportcard.com/report/github.com/BitcoinSchema/go-aip)
[![codecov](https://codecov.io/gh/BitcoinSchema/go-aip/branch/master/graph/badge.svg?v=3)](https://codecov.io/gh/BitcoinSchema/go-aip)
[![Go](https://img.shields.io/github/go-mod/go-version/BitcoinSchema/go-aip?v=3)](https://golang.org/)
<br>

[![Mergify Status](https://img.shields.io/endpoint.svg?url=https://gh.mergify.io/badges/BitcoinSchema/go-aip&style=flat&v=3)](https://mergify.io)
[![Sponsor](https://img.shields.io/badge/sponsor-BitcoinSchema-181717.svg?logo=github&style=flat&v=3)](https://github.com/sponsors/BitcoinSchema)
[![Donate](https://img.shields.io/badge/donate-bitcoin-ff9900.svg?logo=bitcoin&style=flat&v=3)](https://gobitcoinsv.com/#sponsor?utm_source=github&utm_medium=sponsor-link&utm_campaign=go-aip&utm_term=go-aip&utm_content=go-aip)

Expand Down

0 comments on commit 37c4bff

Please sign in to comment.