-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
40 lines (32 loc) · 868 Bytes
/
Copy pathTaskfile.yaml
File metadata and controls
40 lines (32 loc) · 868 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
# https://taskfile.dev
# Run in devcontainer
version: "3"
silent: true
env:
DCRUN: docker compose run --rm
tasks:
default:
cmds:
- task --list
app:up:
desc: Launch mandatory commands for the app to be up&ready
dotenv: ['.env', '{{.ENV}}/.env.', '{{.HOME}}/.env']
status:
- /bin/bash -c "[[ -z \"${CI}\" ]] && exit 1 || exit 0"
cmds:
- tdl training configure $TOKEN
app:run:
desc: Run
status:
- /bin/bash -c "[[ -z \"${CI}\" ]] && exit 1 || exit 0"
cmds:
- tdl training run
app:test:
desc: Test
dir: './project/'
status:
- /bin/bash -c "[[ -z \"${CI}\" ]] && exit 1 || exit 0"
cmds:
- docker compose up -d
- REDIS_ADDR=localhost:6379 go test ./tests/ -v
- POSTGRES_URL=postgres://user:password@localhost:5432/db?sslmode=disable go test ./db/ -v