-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_cycle_scenario.yaml
More file actions
49 lines (45 loc) · 1.17 KB
/
test_cycle_scenario.yaml
File metadata and controls
49 lines (45 loc) · 1.17 KB
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
settings:
project_id: "cycle-test-demo"
verbose: true
cycle_detection:
enabled: true
dynamic_protection: true
max_triggers_per_minute: 4
rules:
# Rule that writes to a file it also watches (self-cycle)
- name: "self-cycle"
skip_run_on_init: true
watch:
- action: "include"
patterns:
- "cycle-input.txt"
commands:
- "echo 'Self cycle triggered' >> cycle-input.txt"
# Pair of rules that trigger each other (cross-cycle)
- name: "writer"
skip_run_on_init: true
watch:
- action: "include"
patterns:
- "trigger-writer.txt"
commands:
- "echo 'Writer triggered' >> trigger-reader.txt"
- name: "reader"
skip_run_on_init: true
watch:
- action: "include"
patterns:
- "trigger-reader.txt"
commands:
- "echo 'Reader triggered' >> trigger-writer.txt"
# Safe rule that doesn't create cycles
- name: "safe-build"
skip_run_on_init: true
watch:
- action: "include"
patterns:
- "src/**/*.go"
commands:
- "echo 'Building Go code'"
- "mkdir -p dist"
- "echo 'Built successfully' > dist/build.log"