31
31
# paths:
32
32
# - "**.rs"
33
33
# - "**.clar"
34
- pull_request_review :
35
- types :
36
- - submitted
37
34
38
35
defaults :
39
36
run :
55
52
# # - PR review comment
56
53
# # - PR change is requested
57
54
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
55
name : Rust Format
68
56
runs-on : ubuntu-latest
69
57
steps :
@@ -104,22 +92,9 @@ jobs:
104
92
# #
105
93
# # Runs when:
106
94
# # - 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
95
docker-image :
113
96
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
- )
97
+ inputs.tag == ''
123
98
name : Docker Image (Source)
124
99
uses : ./.github/workflows/image-build-source.yml
125
100
needs :
@@ -133,19 +108,13 @@ jobs:
133
108
# # or:
134
109
# # - no tag provided
135
110
# # and any of:
136
- # # - PR is approved (any approval will trigger)
137
111
# # - this workflow is called manually
138
112
# # - PR is opened
139
113
# # - commit to either (development, master) branch
140
114
create-cache :
141
115
if : |
142
116
inputs.tag != '' || (
143
117
inputs.tag == '' && (
144
- (
145
- github.event_name == 'pull_request_review' &&
146
- github.event.action == 'submitted' &&
147
- github.event.review.state == 'approved'
148
- ) ||
149
118
github.event_name == 'workflow_dispatch' ||
150
119
github.event_name == 'pull_request' ||
151
120
github.event_name == 'merge_group' ||
@@ -168,16 +137,28 @@ jobs:
168
137
# #
169
138
# # Runs when:
170
139
# # - tag is provided
171
- # # either or of the following:
172
- # # - tag is not provided
173
- # # - PR is approved
140
+ # # or:
141
+ # # - no tag provided
142
+ # # and any of:
143
+ # # - this workflow is called manually
144
+ # # - PR is opened
145
+ # # - PR added to merge queue
146
+ # # - commit to either (development, next, master) branch
174
147
stacks-core-tests :
175
148
if : |
176
149
inputs.tag != '' || (
177
- inputs.tag == '' || (
178
- github.event_name == 'pull_request_review' &&
179
- github.event.action == 'submitted' &&
180
- github.event.review.state == 'approved'
150
+ inputs.tag == '' && (
151
+ github.event_name == 'workflow_dispatch' ||
152
+ github.event_name == 'pull_request' ||
153
+ github.event_name == 'merge_group' ||
154
+ (
155
+ contains('
156
+ refs/heads/master
157
+ refs/heads/develop
158
+ refs/heads/next
159
+ ', github.event.pull_request.head.ref) &&
160
+ github.event_name == 'push'
161
+ )
181
162
)
182
163
)
183
164
name : Stacks Core Tests
@@ -189,10 +170,18 @@ jobs:
189
170
bitcoin-tests :
190
171
if : |
191
172
inputs.tag != '' || (
192
- inputs.tag == '' || (
193
- github.event_name == 'pull_request_review' &&
194
- github.event.action == 'submitted' &&
195
- github.event.review.state == 'approved'
173
+ inputs.tag == '' && (
174
+ github.event_name == 'workflow_dispatch' ||
175
+ github.event_name == 'pull_request' ||
176
+ github.event_name == 'merge_group' ||
177
+ (
178
+ contains('
179
+ refs/heads/master
180
+ refs/heads/develop
181
+ refs/heads/next
182
+ ', github.event.pull_request.head.ref) &&
183
+ github.event_name == 'push'
184
+ )
196
185
)
197
186
)
198
187
name : Bitcoin Tests
@@ -228,3 +217,4 @@ jobs:
228
217
- rustfmt
229
218
- create-cache
230
219
uses : ./.github/workflows/slow-tests.yml
220
+
0 commit comments