about summary refs log tree commit diff
path: root/Taskfile.yml
blob: 9c3e6d30aaad5ec64aedea4e888a737fe3449660 (plain)
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
version: "3"

dotenv: [".env"]

tasks:
  build:
    desc: "Builds Jinx binaries."
    cmds:
      - go build -o build/bot jinx/cmd/bot

  run:
    desc: "Runs Jinx bot binary."
    deps: [build]
    cmds:
      - build/bot

  test:
    desc: "Tests all packages."
    cmds:
      - go test ./... -timeout=1s

  generate-mocks:
    desc: "Generates mocks for given pkg/."
    cmds:
      - mockery --all --case snake --srcpkg jinx/pkg/{{.CLI_ARGS}} --output pkg/{{.CLI_ARGS}}/mocks