Skip to content

Commit

Permalink
Search by id deps (#20)
Browse files Browse the repository at this point in the history
* search by instance id and update deps
* update ui deps, change the way of tools install
  • Loading branch information
Shareed2k authored May 29, 2022
1 parent 7ea5080 commit 7efc88b
Show file tree
Hide file tree
Showing 6 changed files with 2,672 additions and 2,529 deletions.
24 changes: 6 additions & 18 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ all: test build
#---------------

.PHONY: test
test: tools.gotestsum lint
test: tools
@echo "==> Running tests..."
@gotestsum --format short-verbose --junitfile junit.xml -- -coverprofile=codecov.out -covermode=atomic ./...

.PHONY: lint
lint: tools.golangci-lint
lint: tools
@echo "==> Running lints..."
@golangci-lint run

Expand Down Expand Up @@ -73,24 +73,12 @@ ui:
-e PUBLIC_URL=. \
-w /opt/src \
-v ${PWD}/ui:/opt/src \
node:14-alpine yarn ui
node:16-alpine yarn ui

#---------------
#-- tools
#---------------
.PHONY: tools
tools: tools.golangci-lint tools.gotestsum

.PHONY: tools.golangci-lint
tools.golangci-lint:
@command -v golangci-lint >/dev/null || { \
echo "==> Installing golangci-lint..."; \
go install github.com/golangci/golangci-lint/cmd/golangci-lint; \
}

.PHONY: tools.gotestsum
tools.gotestsum:
@command -v gotestsum >/dev/null || { \
echo "==> Installing gotestsum..."; \
go install gotest.tools/gotestsum; \
}
tools:
@echo "==> installing tools from tools.go..."
@awk -F'"' '/_/ {print $$2}' tools.go | xargs -tI % go install %
Loading

0 comments on commit 7efc88b

Please sign in to comment.