Skip to content

Commit

Permalink
Merge branch 'devel'
Browse files Browse the repository at this point in the history
  • Loading branch information
bilalcaliskan committed Mar 13, 2023
2 parents 42ea890 + 181bf55 commit 048816f
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,16 @@ run-lint: lint-golangci-lint lint-revive

.PHONY: lint-golangci-lint
lint-golangci-lint:
$(info running golangci-lint...)
#$(info running golangci-lint...)
echo "running golangci-lint..."
$(LOCAL_BIN)/golangci-lint -v run ./... || (echo golangci-lint returned an error, exiting!; sh -c 'exit 1';)
$(info golangci-lint exited successfully!)
echo "golangci-lint exited successfully!"

.PHONY: lint-revive
lint-revive:
$(info running revive...)
echo "running revive..."
$(LOCAL_BIN)/revive -formatter=stylish -config=build/ci/.revive.toml -exclude ./vendor/... ./... || (echo revive returned an error, exiting!; sh -c 'exit 1';)
$(info revive exited successfully!)
echo "revive exited successfully!"

.PHONY: upgrade-direct-deps
upgrade-direct-deps: tidy
Expand Down Expand Up @@ -75,25 +76,25 @@ fmt: tools run-fmt run-ineffassign run-vet

.PHONY: run-fmt
run-fmt:
$(info running fmt...)
echo "running fmt..."
go fmt ./... || (echo fmt returned an error, exiting!; sh -c 'exit 1';)
$(info fmt exited successfully!)
echo "fmt exited successfully!"

.PHONY: run-ineffassign
run-ineffassign:
$(info running ineffassign...)
echo "running ineffassign..."
$(LOCAL_BIN)/ineffassign ./... || (echo ineffassign returned an error, exiting!; sh -c 'exit 1';)
$(info ineffassign exited successfully!)
echo "ineffassign exited successfully!"

.PHONY: run-vet
run-vet:
$(info running vet...)
echo "running vet..."
go vet ./... || (echo vet returned an error, exiting!; sh -c 'exit 1';)
$(info vet exited successfully!)
echo "vet exited successfully!"

.PHONY: test
test: tidy
$(info starting the test for whole module...)
echo "starting the test for whole module..."
go test -failfast -vet=off -race ./... || (echo an error while testing, exiting!; sh -c 'exit 1';)

.PHONY: test-with-coverage
Expand All @@ -106,9 +107,9 @@ update: tidy

.PHONY: build
build: tidy
$(info building binary...)
echo "building binary..."
go build -o bin/main main.go || (echo an error while building binary, exiting!; sh -c 'exit 1';)
$(info binary built successfully!)
echo "binary built successfully!"

.PHONY: run
run: tidy
Expand Down

0 comments on commit 048816f

Please sign in to comment.