Skip to content

Commit

Permalink
Added dependabot, updated makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Nov 6, 2020
1 parent eeb30f7 commit 5e88bd0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Basic dependabot.yml to update gomod

version: 2
updates:
- package-ecosystem: "gomod"
target-branch: "master"
directory: "/"
schedule:
interval: "weekly"
# Check for npm updates at 9am UTC (5am EST)
time: "10:00"
reviewers:
- "mrz1836"
assignees:
- "mrz1836"
# Labels must be created first
labels:
- "update"
7 changes: 6 additions & 1 deletion .make/Makefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ install-go: ## Install the application (Using Native Go)
@go install $(GIT_DOMAIN)/$(REPO_OWNER)/$(REPO_NAME)

lint: ## Run the golangci-lint application (install if not found)
@if [ "$(shell command -v golangci-lint)" = "" ]; then curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.31.0 && sudo cp ./bin/golangci-lint $(go env GOPATH)/bin/; fi;
@#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.32.2 && 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.32.2; fi;
@#Brew - MacOS
@if [ "$(shell command -v golangci-lint)" = "" ] && [ "$(shell command -v brew)" != "" ]; then brew install golangci-lint; fi;
@echo "running golangci-lint..."
@golangci-lint run

Expand Down

0 comments on commit 5e88bd0

Please sign in to comment.