-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
45 lines (31 loc) · 824 Bytes
/
Makefile
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
44
45
SHELL := /bin/bash
export PROJECT = go-maybe-list
# ==============================================================================
# Development
run: up dev
up:
docker compose up -d
dev:
go run ./cmd/web
# ==============================================================================
# Modules support
tidy:
go mod tidy
go mod vendor
deps-upgrade:
go get -u -t -d -v ./...
go mod tidy
go mod vendor
deps-cleancache:
go clean -modcache
# ==============================================================================
# Administration
migrate:
go run ./cmd/admin -action="migrate"
seed: migrate
go run ./cmd/admin -action="seed"
# ==============================================================================
# Running tests within the local computer
test:
go test ./... -count=1
staticcheck ./...