Skip to content

Commit 2c71339

Browse files
authored
Merge pull request #43035 from Expensify/revert-42166-andrew-hybrid-app-deploy
[CP Staging] Revert "Add HybridApp deploy when we deploy staging"
2 parents d21af1d + eab3ced commit 2c71339

File tree

4 files changed

+0
-34
lines changed

4 files changed

+0
-34
lines changed

.github/workflows/platformDeploy.yml

-10
Original file line numberDiff line numberDiff line change
@@ -352,16 +352,6 @@ jobs:
352352
env:
353353
CF_API_KEY: ${{ secrets.CLOUDFLARE_TOKEN }}
354354

355-
# Build a version of iOS and Android HybridApp if we are deploying to staging
356-
hybridApp:
357-
runs-on: ubuntu-latest
358-
needs: validateActor
359-
if: ${{ fromJSON(needs.validateActor.outputs.IS_DEPLOYER) }}
360-
steps:
361-
- name: 'Deploy HybridApp'
362-
if: ${{ !fromJSON(env.SHOULD_DEPLOY_PRODUCTION) }}
363-
uses: Expensify/Mobile-Deploy/.github/workflows/deploy.yml@main
364-
365355
postSlackMessageOnFailure:
366356
name: Post a Slack message when any platform fails to build or deploy
367357
runs-on: ubuntu-latest

workflow_tests/assertions/platformDeployAssertions.ts

-13
Original file line numberDiff line numberDiff line change
@@ -376,26 +376,13 @@ function assertPostGithubCommentJobExecuted(workflowResult: Step[], didExecute =
376376
});
377377
}
378378

379-
function assertHybridAppJobExecuted(workflowResult: Step[], didExecute = true) {
380-
const steps = [createStepAssertion('Deploy HybridApp', true, null, 'HYBRID_APP', 'Deploy HybridApp')] as const;
381-
382-
steps.forEach((expectedStep) => {
383-
if (didExecute) {
384-
expect(workflowResult).toEqual(expect.arrayContaining([expectedStep]));
385-
} else {
386-
expect(workflowResult).not.toEqual(expect.arrayContaining([expectedStep]));
387-
}
388-
});
389-
}
390-
391379
export default {
392380
assertVerifyActorJobExecuted,
393381
assertDeployChecklistJobExecuted,
394382
assertAndroidJobExecuted,
395383
assertDesktopJobExecuted,
396384
assertIOSJobExecuted,
397385
assertWebJobExecuted,
398-
assertHybridAppJobExecuted,
399386
assertPostSlackOnFailureJobExecuted,
400387
assertPostSlackOnSuccessJobExecuted,
401388
assertPostGithubCommentJobExecuted,

workflow_tests/mocks/platformDeployMocks.ts

-5
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,6 @@ const PLATFORM_DEPLOY__WEB__STEP_MOCKS = [
199199
PLATFORM_DEPLOY__WEB__PURGE_STAGING_CACHE__STEP_MOCK,
200200
];
201201

202-
// deploy hybridApp
203-
const PLATFORM_DEPLOY__HYBRID_APP__STEP_MOCK = createMockStep('Deploy HybridApp', 'Deploy HybridApp', 'HYBRID_APP');
204-
const PLATFORM_DEPLOY__HYBRID_APP__STEP_MOCKS = [PLATFORM_DEPLOY__HYBRID_APP__STEP_MOCK];
205-
206202
// post slack message on failure
207203
const PLATFORM_DEPLOY__POST_SLACK_FAIL__POST_SLACK__STEP_MOCK = createMockStep('Post Slack message on failure', 'Posting Slack message on platform deploy failure', 'POST_SLACK_FAIL', [
208204
'SLACK_WEBHOOK',
@@ -278,7 +274,6 @@ export default {
278274
PLATFORM_DEPLOY__DESKTOP__STEP_MOCKS,
279275
PLATFORM_DEPLOY__IOS__STEP_MOCKS,
280276
PLATFORM_DEPLOY__WEB__STEP_MOCKS,
281-
PLATFORM_DEPLOY__HYBRID_APP__STEP_MOCKS,
282277
PLATFORM_DEPLOY__POST_SLACK_FAIL__STEP_MOCKS,
283278
PLATFORM_DEPLOY__POST_SLACK_SUCCESS__STEP_MOCKS,
284279
PLATFORM_DEPLOY__POST_GITHUB_COMMENT__STEP_MOCKS,

workflow_tests/platformDeploy.test.ts

-6
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ describe('test workflow platformDeploy', () => {
101101
desktop: mocks.PLATFORM_DEPLOY__DESKTOP__STEP_MOCKS,
102102
iOS: mocks.PLATFORM_DEPLOY__IOS__STEP_MOCKS,
103103
web: mocks.PLATFORM_DEPLOY__WEB__STEP_MOCKS,
104-
hybridApp: mocks.PLATFORM_DEPLOY__HYBRID_APP__STEP_MOCKS,
105104
postSlackMessageOnFailure: mocks.PLATFORM_DEPLOY__POST_SLACK_FAIL__STEP_MOCKS,
106105
postSlackMessageOnSuccess: mocks.PLATFORM_DEPLOY__POST_SLACK_SUCCESS__STEP_MOCKS,
107106
postGithubComment: mocks.PLATFORM_DEPLOY__POST_GITHUB_COMMENT__STEP_MOCKS,
@@ -126,7 +125,6 @@ describe('test workflow platformDeploy', () => {
126125
assertions.assertDesktopJobExecuted(result, true, false);
127126
assertions.assertIOSJobExecuted(result, true, false, true);
128127
assertions.assertWebJobExecuted(result, true, false);
129-
assertions.assertHybridAppJobExecuted(result, true);
130128
assertions.assertPostSlackOnFailureJobExecuted(result, false);
131129
assertions.assertPostSlackOnSuccessJobExecuted(result, true, false);
132130
assertions.assertPostGithubCommentJobExecuted(result, true, false);
@@ -187,7 +185,6 @@ describe('test workflow platformDeploy', () => {
187185
desktop: mocks.PLATFORM_DEPLOY__DESKTOP__STEP_MOCKS,
188186
iOS: mocks.PLATFORM_DEPLOY__IOS__STEP_MOCKS,
189187
web: mocks.PLATFORM_DEPLOY__WEB__STEP_MOCKS,
190-
hybridApp: mocks.PLATFORM_DEPLOY__HYBRID_APP__STEP_MOCKS,
191188
postSlackMessageOnFailure: mocks.PLATFORM_DEPLOY__POST_SLACK_FAIL__STEP_MOCKS,
192189
postSlackMessageOnSuccess: mocks.PLATFORM_DEPLOY__POST_SLACK_SUCCESS__STEP_MOCKS,
193190
postGithubComment: mocks.PLATFORM_DEPLOY__POST_GITHUB_COMMENT__STEP_MOCKS,
@@ -212,7 +209,6 @@ describe('test workflow platformDeploy', () => {
212209
assertions.assertDesktopJobExecuted(result, true, false);
213210
assertions.assertIOSJobExecuted(result, true, false, true);
214211
assertions.assertWebJobExecuted(result, true, false);
215-
assertions.assertHybridAppJobExecuted(result, true);
216212
assertions.assertPostSlackOnFailureJobExecuted(result, false);
217213
assertions.assertPostSlackOnSuccessJobExecuted(result, true, false);
218214
assertions.assertPostGithubCommentJobExecuted(result, true, false);
@@ -273,7 +269,6 @@ describe('test workflow platformDeploy', () => {
273269
desktop: mocks.PLATFORM_DEPLOY__DESKTOP__STEP_MOCKS,
274270
iOS: mocks.PLATFORM_DEPLOY__IOS__STEP_MOCKS,
275271
web: mocks.PLATFORM_DEPLOY__WEB__STEP_MOCKS,
276-
hybridApp: mocks.PLATFORM_DEPLOY__HYBRID_APP__STEP_MOCKS,
277272
postSlackMessageOnFailure: mocks.PLATFORM_DEPLOY__POST_SLACK_FAIL__STEP_MOCKS,
278273
postSlackMessageOnSuccess: mocks.PLATFORM_DEPLOY__POST_SLACK_SUCCESS__STEP_MOCKS,
279274
postGithubComment: mocks.PLATFORM_DEPLOY__POST_GITHUB_COMMENT__STEP_MOCKS,
@@ -298,7 +293,6 @@ describe('test workflow platformDeploy', () => {
298293
assertions.assertDesktopJobExecuted(result, false);
299294
assertions.assertIOSJobExecuted(result, false);
300295
assertions.assertWebJobExecuted(result, false);
301-
assertions.assertHybridAppJobExecuted(result, false);
302296
assertions.assertPostSlackOnFailureJobExecuted(result, false);
303297
assertions.assertPostSlackOnSuccessJobExecuted(result, false);
304298
assertions.assertPostGithubCommentJobExecuted(result, true, false, false);

0 commit comments

Comments
 (0)