24
24
- reopened
25
25
- synchronize
26
26
- ready_for_review
27
- paths-ignore :
28
- - " **.md"
29
- - " **.yml"
30
- # # might be better to use inclusive v exclusive paths here, ex:
31
- # paths:
32
- # - "**.rs"
33
- # - "**.clar"
34
- pull_request_review :
35
- types :
36
- - submitted
37
27
38
28
defaults :
39
29
run :
55
45
# # - PR review comment
56
46
# # - PR change is requested
57
47
rustfmt :
58
- if : |
59
- !(
60
- github.event_name == 'pull_request_review' &&
61
- github.event.action == 'submitted' &&
62
- (
63
- github.event.review.state == 'commented' ||
64
- github.event.review.state == 'changes_requested'
65
- )
66
- )
67
48
name : Rust Format
68
49
runs-on : ubuntu-latest
69
50
steps :
@@ -104,22 +85,9 @@ jobs:
104
85
# #
105
86
# # Runs when:
106
87
# # - tag is not provided
107
- # # and the following are not true:
108
- # # - PR review submitted (not approved)
109
- # # and any of:
110
- # # - PR review comment
111
- # # - PR change is requested
112
88
docker-image :
113
89
if : |
114
- inputs.tag == '' &&
115
- !(
116
- github.event_name == 'pull_request_review' &&
117
- github.event.action == 'submitted' &&
118
- (
119
- github.event.review.state == 'commented' ||
120
- github.event.review.state == 'changes_requested'
121
- )
122
- )
90
+ inputs.tag == ''
123
91
name : Docker Image (Source)
124
92
uses : ./.github/workflows/image-build-source.yml
125
93
needs :
@@ -133,19 +101,13 @@ jobs:
133
101
# # or:
134
102
# # - no tag provided
135
103
# # and any of:
136
- # # - PR is approved (any approval will trigger)
137
104
# # - this workflow is called manually
138
105
# # - PR is opened
139
106
# # - commit to either (development, master) branch
140
107
create-cache :
141
108
if : |
142
109
inputs.tag != '' || (
143
110
inputs.tag == '' && (
144
- (
145
- github.event_name == 'pull_request_review' &&
146
- github.event.action == 'submitted' &&
147
- github.event.review.state == 'approved'
148
- ) ||
149
111
github.event_name == 'workflow_dispatch' ||
150
112
github.event_name == 'pull_request' ||
151
113
github.event_name == 'merge_group' ||
@@ -168,16 +130,28 @@ jobs:
168
130
# #
169
131
# # Runs when:
170
132
# # - tag is provided
171
- # # either or of the following:
172
- # # - tag is not provided
173
- # # - PR is approved
133
+ # # or:
134
+ # # - no tag provided
135
+ # # and any of:
136
+ # # - this workflow is called manually
137
+ # # - PR is opened
138
+ # # - PR added to merge queue
139
+ # # - commit to either (development, next, master) branch
174
140
stacks-core-tests :
175
141
if : |
176
142
inputs.tag != '' || (
177
- inputs.tag == '' || (
178
- github.event_name == 'pull_request_review' &&
179
- github.event.action == 'submitted' &&
180
- github.event.review.state == 'approved'
143
+ inputs.tag == '' && (
144
+ github.event_name == 'workflow_dispatch' ||
145
+ github.event_name == 'pull_request' ||
146
+ github.event_name == 'merge_group' ||
147
+ (
148
+ contains('
149
+ refs/heads/master
150
+ refs/heads/develop
151
+ refs/heads/next
152
+ ', github.event.pull_request.head.ref) &&
153
+ github.event_name == 'push'
154
+ )
181
155
)
182
156
)
183
157
name : Stacks Core Tests
@@ -189,10 +163,18 @@ jobs:
189
163
bitcoin-tests :
190
164
if : |
191
165
inputs.tag != '' || (
192
- inputs.tag == '' || (
193
- github.event_name == 'pull_request_review' &&
194
- github.event.action == 'submitted' &&
195
- github.event.review.state == 'approved'
166
+ inputs.tag == '' && (
167
+ github.event_name == 'workflow_dispatch' ||
168
+ github.event_name == 'pull_request' ||
169
+ github.event_name == 'merge_group' ||
170
+ (
171
+ contains('
172
+ refs/heads/master
173
+ refs/heads/develop
174
+ refs/heads/next
175
+ ', github.event.pull_request.head.ref) &&
176
+ github.event_name == 'push'
177
+ )
196
178
)
197
179
)
198
180
name : Bitcoin Tests
@@ -228,3 +210,4 @@ jobs:
228
210
- rustfmt
229
211
- create-cache
230
212
uses : ./.github/workflows/slow-tests.yml
213
+
0 commit comments