mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-25 01:41:00 +00:00
014d7ac131
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.6.1 to 1.7.0. - [Release notes](https://github.com/spf13/cobra/releases) - [Commits](https://github.com/spf13/cobra/compare/v1.6.1...v1.7.0) --- updated-dependencies: - dependency-name: github.com/spf13/cobra dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
35 lines
907 B
Makefile
35 lines
907 B
Makefile
BIN="./bin"
|
|
SRC=$(shell find . -name "*.go")
|
|
|
|
ifeq (, $(shell which golangci-lint))
|
|
$(warning "could not find golangci-lint in $(PATH), run: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh")
|
|
endif
|
|
|
|
.PHONY: fmt lint test install_deps clean
|
|
|
|
default: all
|
|
|
|
all: fmt test
|
|
|
|
fmt:
|
|
$(info ******************** checking formatting ********************)
|
|
@test -z $(shell gofmt -l $(SRC)) || (gofmt -d $(SRC); exit 1)
|
|
|
|
lint:
|
|
$(info ******************** running lint tools ********************)
|
|
golangci-lint run -v
|
|
|
|
test: install_deps
|
|
$(info ******************** running tests ********************)
|
|
go test -v ./...
|
|
|
|
richtest: install_deps
|
|
$(info ******************** running tests with kyoh86/richgo ********************)
|
|
richgo test -v ./...
|
|
|
|
install_deps:
|
|
$(info ******************** downloading dependencies ********************)
|
|
go get -v ./...
|
|
|
|
clean:
|
|
rm -rf $(BIN)
|