-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yaml
66 lines (56 loc) · 1.13 KB
/
Taskfile.yaml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# https://taskfile.dev
version: '3'
vars:
REPO_NAME: advent-of-code-da
REPO_OWNER: davidalpert
SLN_FILE: advent-of-code.sln
THIS_YEAR:
sh: date +%Y
THIS_DAY:
sh: date +%d
YEAR: '{{.YEAR | default .THIS_YEAR}}'
DAY: '{{.DAY | default .THIS_DAY}}'
tasks:
default:
deps:
- help
silent: true
new-day:
desc: generate a new F# module and test file for today
cmds:
- ./new-day.sh {{.YEAR}} {{.DAY}} {{.CLI_ARGS}}
- task: autotest
restore:
desc: restore packages
run: once
cmds:
- dotnet restore {{.SLN_FILE}}
silent: true
build:
desc: builds something
run: once
cmds:
- dotnet build {{.SLN_FILE}}
silent: true
test:
desc: run tests
run: once
deps:
- restore
cmds:
- dotnet test {{.SLN_FILE}}
silent: true
autotest:
desc: run tests continuously
deps:
- restore
cmds:
- dotnet watch test --project {{.YEAR}}/{{.YEAR}}.fsproj
silent: true
help:
desc: list targets
cmds:
- echo "Advent of Code - {{ .YEAR }}"
- echo ""
- task --list
silent: true