mirror of
https://github.com/onedr0p/exportarr.git
synced 2026-02-06 19:06:57 +00:00
* Add golangci-lint, fix lint warnings Signed-off-by: Russell Troxel <russell@troxel.io> * Set `shell` on lint actions Signed-off-by: Russell Troxel <russell@troxel.io> * go fmt Signed-off-by: Russell Troxel <russell@troxel.io> --------- Signed-off-by: Russell Troxel <russell@troxel.io>
30 lines
521 B
Makefile
30 lines
521 B
Makefile
-include .env
|
|
|
|
.PHONY: build run check fmt tidy lint test
|
|
|
|
build:
|
|
docker build . -t exportarr:local
|
|
|
|
run:
|
|
docker rm --force exportarr || echo ""
|
|
docker run --name exportarr \
|
|
-e PORT=9707 \
|
|
-e URL="${APP_URL}" \
|
|
-e APIKEY="${APP_API_KEY}" \
|
|
-e LOG_LEVEL="debug" \
|
|
-p 9707:9707 \
|
|
-d exportarr:local ${APP_NAME}
|
|
|
|
check: fmt tidy lint test
|
|
|
|
fmt:
|
|
go fmt ./...
|
|
|
|
tidy:
|
|
go mod tidy
|
|
|
|
lint:
|
|
golangci-lint run -c .github/lint/golangci.yaml
|
|
|
|
test:
|
|
go test -v -race -covermode atomic -coverprofile=covprofile ./...
|