all repos

onasty @ 67a69fb

a one-time notes service

onasty/Taskfile.yml(view raw)

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"

includes:
  migrate: ./migrations/Taskfile.yml
  frontend:
    taskfile: ./web/Taskfile.yml
    dir: ./web/

env:
  COMPOSE_BAKE: 1

vars:
  gotest:
    sh: 'command -v gotest >/dev/null && echo gotest || echo "go test"'

tasks:
  run:
    - docker compose up -d --build --remove-orphans core mailer

  lint:
    - golangci-lint run

  docker:up:
    - docker compose up -d --build --remove-orphans

  docker:down:
    aliases: [docker:stop]
    cmd: docker compose stop

  seed:run:
    - docker compose run --rm seed

  test:
    - task: test:unit
    - task: test:e2e

  test:unit:
    - '{{.gotest}} --count=1 -v --short ./...'

  test:e2e:
    - '{{.gotest}} --count=1 -v ./e2e/'