Skip to content

Commit 3b97722

Browse files
authored
ci: fix stress test workflow (#3469)
1 parent 3719cca commit 3b97722

File tree

1 file changed

+18
-21
lines changed

1 file changed

+18
-21
lines changed

.github/workflows/stress_test.yml

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616
prepare-for-test:
1717
runs-on: macos-13
1818
environment: IntegrationTest
19+
outputs:
20+
destination: ${{ steps.platform.outputs.destination }}
21+
xcode-version: ${{ steps.platform.outputs.xcode-version }}
1922
steps:
2023
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
2124
with:
@@ -29,25 +32,19 @@ jobs:
2932
aws_region: ${{ secrets.AWS_REGION }}
3033
aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG_V2 }}
3134

32-
get-platform-build-params:
33-
runs-on: macos-13
34-
needs: prepare-for-test
35-
outputs:
36-
platform-params: ${{ steps.platform.outputs }}
37-
steps:
3835
- name: Get build parameters
3936
id: platform
4037
uses: ./.github/composite_actions/get_platform_parameters
4138
with:
4239
platform: 'iOS'
4340

4441
auth-stress-test:
45-
needs: get-platform-build-params
42+
needs: prepare-for-test
4643
runs-on: macos-13
4744
environment: IntegrationTest
4845
env:
49-
DESTINATION: ${{ needs.get-platform-build-params.outputs.platform-params.destination }}
50-
XCODE_VERSION: ${{ needs.get-platform-build-params.outputs.platform-params.xcode-version }}
46+
DESTINATION: ${{ needs.prepare-for-test.outputs.destination }}
47+
XCODE_VERSION: ${{ needs.prepare-for-test.outputs.xcode-version }}
5148
steps:
5249
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
5350
with:
@@ -73,12 +70,12 @@ jobs:
7370
xcode_path: '/Applications/Xcode_${{ env.XCODE_VERSION }}.app'
7471

7572
geo-stress-test:
76-
needs: get-platform-build-params
73+
needs: prepare-for-test
7774
runs-on: macos-13
7875
environment: IntegrationTest
7976
env:
80-
DESTINATION: ${{ needs.get-platform-build-params.outputs.platform-params.destination }}
81-
XCODE_VERSION: ${{ needs.get-platform-build-params.outputs.platform-params.xcode-version }}
77+
DESTINATION: ${{ needs.prepare-for-test.outputs.destination }}
78+
XCODE_VERSION: ${{ needs.prepare-for-test.outputs.xcode-version }}
8279
steps:
8380
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
8481
with:
@@ -104,12 +101,12 @@ jobs:
104101
xcode_path: '/Applications/Xcode_${{ env.XCODE_VERSION }}.app'
105102

106103
storage-stress-test:
107-
needs: get-platform-build-params
104+
needs: prepare-for-test
108105
runs-on: macos-13
109106
environment: IntegrationTest
110107
env:
111-
DESTINATION: ${{ needs.get-platform-build-params.outputs.platform-params.destination }}
112-
XCODE_VERSION: ${{ needs.get-platform-build-params.outputs.platform-params.xcode-version }}
108+
DESTINATION: ${{ needs.prepare-for-test.outputs.destination }}
109+
XCODE_VERSION: ${{ needs.prepare-for-test.outputs.xcode-version }}
113110
steps:
114111
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
115112
with:
@@ -135,12 +132,12 @@ jobs:
135132
xcode_path: '/Applications/Xcode_${{ env.XCODE_VERSION }}.app'
136133

137134
datastore-stress-test:
138-
needs: get-platform-build-params
135+
needs: prepare-for-test
139136
runs-on: macos-13
140137
environment: IntegrationTest
141138
env:
142-
DESTINATION: ${{ needs.get-platform-build-params.outputs.platform-params.destination }}
143-
XCODE_VERSION: ${{ needs.get-platform-build-params.outputs.platform-params.xcode-version }}
139+
DESTINATION: ${{ needs.prepare-for-test.outputs.destination }}
140+
XCODE_VERSION: ${{ needs.prepare-for-test.outputs.xcode-version }}
144141
steps:
145142
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
146143
with:
@@ -166,12 +163,12 @@ jobs:
166163
xcode_path: '/Applications/Xcode_${{ env.XCODE_VERSION }}.app'
167164

168165
graphql-api-stress-test:
169-
needs: get-platform-build-params
166+
needs: prepare-for-test
170167
runs-on: macos-13
171168
environment: IntegrationTest
172169
env:
173-
DESTINATION: ${{ needs.get-platform-build-params.outputs.platform-params.destination }}
174-
XCODE_VERSION: ${{ needs.get-platform-build-params.outputs.platform-params.xcode-version }}
170+
DESTINATION: ${{ needs.prepare-for-test.outputs.destination }}
171+
XCODE_VERSION: ${{ needs.prepare-for-test.outputs.xcode-version }}
175172
steps:
176173
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
177174
with:

0 commit comments

Comments
 (0)