@@ -43,6 +43,14 @@ inputs:
43
43
description : ' PostgreSQL version to use'
44
44
default : ' 14'
45
45
required : false
46
+ use-new-devservices :
47
+ description : ' Use new devservices'
48
+ required : false
49
+ default : ' false'
50
+ mode :
51
+ description : ' Mode to bring up by new devservices'
52
+ required : false
53
+ default : ' default'
46
54
47
55
outputs :
48
56
yarn-cache-dir :
@@ -139,6 +147,7 @@ runs:
139
147
140
148
- name : Start devservices
141
149
shell : bash --noprofile --norc -eo pipefail -ux {0}
150
+ if : ${{ inputs.use-new-devservices != 'true' }}
142
151
env :
143
152
NEED_KAFKA : ${{ inputs.kafka }}
144
153
NEED_SNUBA : ${{ inputs.snuba }}
@@ -195,3 +204,23 @@ runs:
195
204
# This is necessary when other repositories (e.g. relay) want to take advantage of this workflow
196
205
# without needing to fork it. The path needed is the one where tools are located
197
206
cd "$WORKDIR"
207
+
208
+ - name : Start new devservices
209
+ if : ${{ inputs.use-new-devservices == 'true' }}
210
+ shell : bash --noprofile --norc -eo pipefail -ux {0}
211
+ env :
212
+ WORKDIR : ${{ inputs.workdir }}
213
+ ENABLE_AUTORUN_MIGRATION_SEARCH_ISSUES : ' 1'
214
+ run : |
215
+ sentry init
216
+
217
+ devservices up --mode ${{ inputs.mode }}
218
+
219
+ # have tests listen on the docker gateway ip so loopback can occur
220
+ echo "DJANGO_LIVE_TEST_SERVER_ADDRESS=$(docker network inspect bridge --format='{{(index .IPAM.Config 0).Gateway}}')" >> "$GITHUB_ENV"
221
+
222
+ docker ps -a
223
+
224
+ # This is necessary when other repositories (e.g. relay) want to take advantage of this workflow
225
+ # without needing to fork it. The path needed is the one where tools are located
226
+ cd "$WORKDIR"
0 commit comments