-
Notifications
You must be signed in to change notification settings - Fork 9
/
Taskfile.yml
44 lines (41 loc) · 853 Bytes
/
Taskfile.yml
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
version: '3'
dotenv: ['.env']
tasks:
run:
cmds:
- DSN=$DSN PORT=$PORT go run ./cmd/conduit/main.go
seed:
cmds:
- DSN=$DSN PORT=$PORT go run ./cmd/seed/main.go
build:
cmds:
- go build -v -o ./realworld_go_kit ./cmd/conduit/main.go
run-build:
cmds:
- ./realworld_go_kit
format:
cmds:
- gofumpt -l -w .
vet:
cmds:
- go vet ./...
lint:
cmds:
- golangci-lint run
test:
cmds:
- DSN=$DSN go test ./...
integration:production:
cmds:
- ./integrations/run-postman-tests.sh https://realworld-go-kit.fly.dev
integration:local:
cmds:
- ./integrations/run-postman-tests.sh http://localhost:8080
deps:
- docker:start
includes:
docker:
taskfile: ./Taskfile.docker.yml
vars:
DATABASE_URL: $DATABASE_URL
PORT: $PORT