all repos

onasty @ 9f5c654

a one-time notes service

onasty/Taskfile.yml (view raw)

Smirnov Oleksandr Smirnov Oleksandr
ss2316544@gmail.com
feat: notes manipulations for the note authors (#117)..., 1 year ago
1
version: "3"
2
3
dotenv:
4
  - ".env"
5
6
includes:
7
  migrate: ./migrations/Taskfile.yml
8
  seed: ./cmd/seed/Taskfile.yml
9
10
env:
11
  DOCKER_BUILDKIT: 1
12
  COMPOSE_DOCKER_CLI_BUILD: 1
13
14
vars:
15
  gotest:
16
    sh: 'command -v gotest >/dev/null && echo gotest || echo "go test"'
17
18
tasks:
19
  run:
20
    - docker compose up -d --build --remove-orphans core mailer
21
22
  lint:
23
    - golangci-lint run
24
25
  docker:up:
26
    - docker compose up -d --build --remove-orphans
27
28
  docker:down:
29
    aliases: [docker:stop]
30
    cmds:
31
      - docker compose stop
32
33
  test:
34
    - task: test:unit
35
    - task: test:e2e
36
37
  test:unit:
38
    - '{{.gotest}} --count=1 -v --short ./...'
39
40
  test:e2e:
41
    - '{{.gotest}} --count=1 -v ./e2e/'