@@ -102,8 +102,8 @@ jobs:
102
102
load : true
103
103
tags : ${{ steps.migrations-docker-metadata.outputs.tags }}
104
104
105
- - name : " Run Tests"
106
- run : yarn test
105
+ # - name: "Run Tests"
106
+ # run: yarn test
107
107
108
108
- name : " Authenticate with GCP"
109
109
if : github.ref == 'refs/heads/main' || (github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.action == 'reopened' || github.event.action == 'labeled' || github.event.action == 'unlabeled'))
@@ -240,6 +240,17 @@ jobs:
240
240
labels : |-
241
241
commit-sha=${{ github.sha }}
242
242
243
+ - name : " Deploy Tests to Cloud Run"
244
+ uses : google-github-actions/deploy-cloudrun@v2
245
+ with :
246
+ image : europe-docker.pkg.dev/ghost-activitypub/activitypub/activitypub:${{ needs.build-test-push.outputs.migrations_docker_version }}
247
+ region : europe-west4
248
+ job : stg-pr-${{ github.event.pull_request.number }}-tests
249
+ flags : --command="yarn" --args "_test:single" --wait --execute-now
250
+ skip_default_labels : true
251
+ labels : |-
252
+ commit-sha=${{ github.sha }}
253
+
243
254
- name : " Add route to GCP Load Balancer"
244
255
if : ${{ steps.check-labels.outputs.is_ephemeral_staging == 'true' }}
245
256
env :
@@ -306,6 +317,18 @@ jobs:
306
317
labels : |-
307
318
commit-sha=${{ github.sha }}
308
319
320
+ - name : " Deploy Tests to Cloud Run"
321
+ if : ${{ matrix.region == 'europe-west4' }}
322
+ uses : google-github-actions/deploy-cloudrun@v2
323
+ with :
324
+ image : europe-docker.pkg.dev/ghost-activitypub/activitypub/activitypub:${{ needs.build-test-push.outputs.migrations_docker_version }}
325
+ region : ${{ matrix.region }}
326
+ job : stg-${{ matrix.region_name }}-activitypub-tests
327
+ flags : --command="yarn _test:single" --wait --execute-now
328
+ skip_default_labels : true
329
+ labels : |-
330
+ commit-sha=${{ github.sha }}
331
+
309
332
- name : " Deploy ActivityPub Queue to Cloud Run"
310
333
uses : google-github-actions/deploy-cloudrun@v2
311
334
with :
0 commit comments