@@ -43,6 +43,14 @@ inputs:
4343 description : ' PostgreSQL version to use'
4444 default : ' 14'
4545 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'
4654
4755outputs :
4856 yarn-cache-dir :
@@ -139,6 +147,7 @@ runs:
139147
140148 - name : Start devservices
141149 shell : bash --noprofile --norc -eo pipefail -ux {0}
150+ if : ${{ inputs.use-new-devservices != 'true' }}
142151 env :
143152 NEED_KAFKA : ${{ inputs.kafka }}
144153 NEED_SNUBA : ${{ inputs.snuba }}
@@ -195,3 +204,23 @@ runs:
195204 # This is necessary when other repositories (e.g. relay) want to take advantage of this workflow
196205 # without needing to fork it. The path needed is the one where tools are located
197206 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