mirror of
https://codeberg.org/superseriousbusiness/gotosocial.git
synced 2024-12-21 00:21:59 +03:00
f2e5bedea6
* migrate go version to 1.17 * update contributing
18 lines
No EOL
404 B
Makefile
18 lines
No EOL
404 B
Makefile
GOCMD=GO111MODULE=on go
|
|
|
|
linters-install:
|
|
@golangci-lint --version >/dev/null 2>&1 || { \
|
|
echo "installing linting tools..."; \
|
|
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s v1.41.1; \
|
|
}
|
|
|
|
lint: linters-install
|
|
golangci-lint run
|
|
|
|
test:
|
|
$(GOCMD) test -cover -race ./...
|
|
|
|
bench:
|
|
$(GOCMD) test -bench=. -benchmem ./...
|
|
|
|
.PHONY: test lint linters-install |