Skip to content

Commit e9a9ec4

Browse files
authored
Merge pull request #81 from Resgrid/develop
CU-868cu9311 CI Changes
2 parents a66fac3 + 87e7b01 commit e9a9ec4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/react-native-cicd.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ jobs:
8787
run: yarn check-all
8888

8989
build-and-deploy:
90+
needs: test
9091
if: (github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')) || github.event_name == 'workflow_dispatch'
9192
strategy:
9293
matrix:
@@ -172,23 +173,23 @@ jobs:
172173
NODE_ENV: production
173174

174175
- name: 📱 Build iOS Development
175-
if: (github.event.inputs.buildType == 'all' || github.event.inputs.buildType == 'ios-dev') && (matrix.platform == 'ios' || github.event.inputs.platform == 'all' || github.event.inputs.platform == 'ios')
176+
if: (github.event.inputs.buildType == 'all' || github.event_name == 'push' || github.event.inputs.buildType == 'ios-dev') && (matrix.platform == 'ios' || github.event.inputs.platform == 'all' || github.event.inputs.platform == 'ios')
176177
run: |
177178
export NODE_OPTIONS="--openssl-legacy-provider --max_old_space_size=4096"
178179
eas build --platform ios --profile development --local --non-interactive --output=./app-ios-dev.app
179180
env:
180181
NODE_ENV: development
181182

182183
- name: 📱 Build iOS Ad-Hoc
183-
if: (github.event.inputs.buildType == 'all' || github.event.inputs.buildType == 'ios-adhoc') && (matrix.platform == 'ios' || github.event.inputs.platform == 'all' || github.event.inputs.platform == 'ios')
184+
if: (github.event.inputs.buildType == 'all' || github.event_name == 'push' || github.event.inputs.buildType == 'ios-adhoc') && (matrix.platform == 'ios' || github.event.inputs.platform == 'all' || github.event.inputs.platform == 'ios')
184185
run: |
185186
export NODE_OPTIONS="--openssl-legacy-provider --max_old_space_size=4096"
186187
eas build --platform ios --profile internal --local --non-interactive --output=./app-ios-adhoc.app
187188
env:
188189
NODE_ENV: production
189190

190191
- name: 📱 Build iOS Production
191-
if: (github.event.inputs.buildType == 'all' || github.event.inputs.buildType == 'ios-prod') && (matrix.platform == 'ios' || github.event.inputs.platform == 'all' || github.event.inputs.platform == 'ios')
192+
if: (github.event.inputs.buildType == 'all' || github.event_name == 'push' || github.event.inputs.buildType == 'ios-prod') && (matrix.platform == 'ios' || github.event.inputs.platform == 'all' || github.event.inputs.platform == 'ios')
192193
run: |
193194
export NODE_OPTIONS="--openssl-legacy-provider --max_old_space_size=4096"
194195
eas build --platform ios --profile production --local --non-interactive --output=./app-ios-prod.ipa

0 commit comments

Comments
 (0)