-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (32 loc) · 756 Bytes
/
Makefile
File metadata and controls
43 lines (32 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# gomarks - simple bookmark manager
# See LICENSE file for copyright and license details.
BINARY_NAME := gmweb
FN ?= .
all: lint check test build
# Run tests
test:
@echo '>> Testing $(BINARY_NAME)'
@go test ./...
@echo
# Run tests with gotestsum
testsum:
@echo '>> Testing gmweb with gotestsum'
@gotestsum --format pkgname --hide-summary=skipped --format-icons codicons
# Lint code with 'golangci-lint'
lint:
@echo '>> Linting code'
@go vet ./...
golangci-lint run ./...
# Run tests for a specific function
testfn:
@echo '>> Testing function $(FN)'
@go test -run $(FN) ./...
tidy:
go mod tidy
docker:
docker-compose up
podman:
podman compose up
run:
go run . -a :8083 --dev -vvvvvvv
.PHONY: all build test clean full lint testfn