1
1
definitions :
2
2
configure_environment : &configure_environment
3
3
instance_type : mac_mini_m1
4
- max_build_duration : 60
4
+ max_build_duration : 30
5
5
cache :
6
6
cache_paths :
7
7
- $HOME/.gradle/caches
@@ -31,7 +31,16 @@ workflows:
31
31
<< : *configure_environment
32
32
triggering :
33
33
events :
34
+ # run when a pull request is opened or updated
34
35
- pull_request
36
+ branch_patterns :
37
+ # review changes BEFORE they’re merged into any branches
38
+ - pattern : ' *'
39
+ source : false
40
+ # review changes AFTER they have been merged into develop branch
41
+ - pattern : ' develop'
42
+ # review changes AFTER they have been merged into main branch
43
+ - pattern : ' main'
35
44
cancel_previous_builds : true
36
45
scripts :
37
46
- *detekt_on_template_compose
@@ -44,53 +53,16 @@ workflows:
44
53
<< : *configure_environment
45
54
triggering :
46
55
events :
56
+ # run when a pull request is opened or updated
47
57
- pull_request
48
- cancel_previous_builds : true
49
- scripts :
50
- - *detekt_on_template_xml
51
- - *unit_test_on_template_xml
52
- artifacts :
53
- - *artifacts_template_xml
54
-
55
- unit-test-on-push-for-template-compose :
56
- name : Unit test on push for template-compose
57
- << : *configure_environment
58
- triggering :
59
- events :
60
- - push
61
- branch_patterns :
62
- - pattern : ' *'
63
- - pattern : develop
64
- include : false
65
- - pattern : ' release/**'
66
- include : false
67
- - pattern : ' hotfix/**'
68
- include : false
69
- - pattern : master
70
- include : false
71
- cancel_previous_builds : true
72
- scripts :
73
- - *detekt_on_template_compose
74
- - *unit_test_on_template_compose
75
- artifacts :
76
- - *artifacts_template_compose
77
-
78
- unit-test-on-push-for-template-xml :
79
- name : Unit test on push for template-xml
80
- << : *configure_environment
81
- triggering :
82
- events :
83
- - push
84
58
branch_patterns :
59
+ # review changes BEFORE they’re merged into any branches
85
60
- pattern : ' *'
86
- - pattern : develop
87
- include : false
88
- - pattern : ' release/**'
89
- include : false
90
- - pattern : ' hotfix/**'
91
- include : false
92
- - pattern : master
93
- include : false
61
+ source : false
62
+ # review changes AFTER they have been merged into develop branch
63
+ - pattern : ' develop'
64
+ # review changes AFTER they have been merged into main branch
65
+ - pattern : ' main'
94
66
cancel_previous_builds : true
95
67
scripts :
96
68
- *detekt_on_template_xml
0 commit comments