-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
45 lines (39 loc) · 913 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
45
version: '3'
tasks:
default:
desc: display available tasks
cmds:
- task --list-all
# build:
# desc: build the container
# cmds:
# - docker build -t circular-dependency-detector .
# sources:
# - ./**/*.go
# - ./**/*.mod
# - ./**/*.sum
# - ./**/.env
# - ./entrypoint.sh
# - testing/**/*
# - Dockerfile
# - Taskfile.yml
# run:
# desc: run the program locally inside container
# deps: [build]
# cmds:
# - docker run circular-dependency-detector "{{ .INPUT_FILE }}" "{{ .FAIL_ON_CYCLE }}"
# test:
# desc: run the unit tests
# deps: [build]
# cmds:
# - docker run --entrypoint 'go' circular-dependency-detector test -v /app/...
# lint:
# desc: runs lint validation
# cmds:
# - golangci-lint run
# sources:
# - './**/*.go'
# - .golangci.yml
# clean:
# cmds:
# - rm -rf .task/