-
Notifications
You must be signed in to change notification settings - Fork 59
/
.watch.yaml
47 lines (40 loc) · 1011 Bytes
/
.watch.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
## Funzzy events file
# more details see: https://github.com/cristianoliveira/funzzy
#
# list here all the events and the commands that it should execute
- name: build @quick
run: 'make build'
run_on_init: true
change: '**/*.go'
- name: run lint @quick
run: 'make lint'
run_on_init: true
change: '**/*.go'
- name: build nix
run:
- make nix-check
# if fails open nix.log which contains the new hash
- make nix-build 2> nix.log || nvim nix.log
run_on_init: true
change:
- '**/*.go'
- '**/*.nix'
- name: run my unit tests @quick
run: 'make test'
change: '**/*.go'
- name: run tests with tag test-only @quick
run: 'go test -tags test-only'
change: '**/*.go'
- name: run integration tests
run: 'make integration'
change: 'tests/*'
- name: after all stage file
run:
- git add {{relative_filepath}}
- git add -p # start a quick review and stage the rest
change:
- 'README.md'
- 'Makefile'
- '**/*.nix'
- '**/*.go'
- 'tests/*'