-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
48 lines (40 loc) · 1.06 KB
/
justfile
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
46
47
48
set dotenv-load := true
set export
run:
go run cmd/main.go
build:
go build -v -o service ./cmd/main.go
test:
go test ./...
test-cov:
go test ./... -coverprofile=coverage.out
show-cov:
go tool cover -html=coverage.out
generate:
go generate ./...
gql-install:
go get -u github.com/99designs/gqlgen
gql-init:
go run github.com/99designs/gqlgen init
gql-gen:
go run github.com/99designs/gqlgen generate
env name:
ln -sf .env.{{name}} .env
envcreate name:
cp .env.example .env.{{name}}
db-install-migrate:
brew install golang-migrate
db-create-migrate name:
migrate create -ext sql -dir migrations -seq {{name}}
db-migrate:
migrate -database ${DB_CONN} -path migrations up
db-rollback:
migrate -database ${DB_CONN} -path migrations down
db-migration-force version:
migrate -database ${DB_CONN} -path migrations force {{version}}
# release:
# # autotag --scheme=conventional
release:
git sv next-version
# https://github.com/pantheon-systems/autotag
# go install github.com/git-chglog/git-chglog/cmd/git-chglog