From 3321ec7d41e678f1e27b631393f8a9bbcfab6d5b Mon Sep 17 00:00:00 2001 From: mingxuanzhang Date: Fri, 6 Sep 2024 16:24:28 -0700 Subject: [PATCH] test: add sfdx create project test --- .github/workflows/coreE2E.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/coreE2E.yml b/.github/workflows/coreE2E.yml index 31b69eb11e..30d4a80284 100644 --- a/.github/workflows/coreE2E.yml +++ b/.github/workflows/coreE2E.yml @@ -126,6 +126,16 @@ jobs: vscodeVersion: ${{ inputs.vscodeVersion }} runId: ${{ inputs.runId }} + sfdxCreateProject: + if: ${{ inputs.miscellaneous }} + uses: ./.github/workflows/runE2ETest.yml + secrets: inherit + with: + automationBranch: ${{ inputs.automationBranch }} + testToRun: 'createProjectTest.e2e.ts' + vscodeVersion: ${{ inputs.vscodeVersion }} + runId: ${{ inputs.runId }} + sObjectsDefinitions: if: ${{ inputs.sObjectsDefinitions }} uses: ./.github/workflows/runE2ETest.yml @@ -163,6 +173,7 @@ jobs: anInitialSuite, authentication, miscellaneous, + sfdxCreateProject, sObjectsDefinitions, templates ] @@ -172,7 +183,7 @@ jobs: title: 'Core E2E Tests' vscodeVersion: ${{ inputs.vscodeVersion }} testsBranch: ${{ inputs.automationBranch }} - summary: '\n- An Initial Suite: ${{ needs.anInitialSuite.result }}\n- Authentication: ${{ needs.authentication.result }}\n- Miscellaneous: ${{ needs.miscellaneous.result }}\n- SObjects Definitions: ${{ needs.sObjectsDefinitions.result }}\n- Templates: ${{ needs.templates.result }}' + summary: '\n- An Initial Suite: ${{ needs.anInitialSuite.result }}\n- Authentication: ${{ needs.authentication.result }}\n- Miscellaneous: ${{ needs.miscellaneous.result }}\n- sfdxCreateProject: ${{ needs.sfdxCreateProject.result }}\n- SObjects Definitions: ${{ needs.sObjectsDefinitions.result }}\n- Templates: ${{ needs.templates.result }}' result: 'All the tests passed.' workflow: 'actions/runs/${{ github.run_id }}' type: 'e2e' @@ -184,6 +195,7 @@ jobs: anInitialSuite, authentication, miscellaneous, + sfdxCreateProject, sObjectsDefinitions, templates ] @@ -193,7 +205,7 @@ jobs: title: 'Core E2E Tests' vscodeVersion: ${{ inputs.vscodeVersion }} testsBranch: ${{ inputs.automationBranch }} - summary: '\n- An Initial Suite: ${{ needs.anInitialSuite.result }}\n- Authentication: ${{ needs.authentication.result }}\n- Miscellaneous: ${{ needs.miscellaneous.result }}\n- SObjects Definitions: ${{ needs.sObjectsDefinitions.result }}\n- Templates: ${{ needs.templates.result }}' + summary: '\n- An Initial Suite: ${{ needs.anInitialSuite.result }}\n- Authentication: ${{ needs.authentication.result }}\n- Miscellaneous: ${{ needs.miscellaneous.result }}\n- sfdxCreateProject: ${{ needs.sfdxCreateProject.result }}\n- SObjects Definitions: ${{ needs.sObjectsDefinitions.result }}\n- Templates: ${{ needs.templates.result }}' result: 'Not all the tests passed.' workflow: 'actions/runs/${{ github.run_id }}' type: 'e2e' @@ -205,6 +217,7 @@ jobs: anInitialSuite, authentication, miscellaneous, + sfdxCreateProject, sObjectsDefinitions, templates ] @@ -214,7 +227,7 @@ jobs: title: 'Core E2E Tests' vscodeVersion: ${{ inputs.vscodeVersion }} testsBranch: ${{ inputs.automationBranch }} - summary: '\n- An Initial Suite: ${{ needs.anInitialSuite.result }}\n- Authentication: ${{ needs.authentication.result }}\n- Miscellaneous: ${{ needs.miscellaneous.result }}\n- SObjects Definitions: ${{ needs.sObjectsDefinitions.result }}\n- Templates: ${{ needs.templates.result }}' + summary: '\n- An Initial Suite: ${{ needs.anInitialSuite.result }}\n- Authentication: ${{ needs.authentication.result }}\n- Miscellaneous: ${{ needs.miscellaneous.result }}\n- sfdxCreateProject: ${{ needs.sfdxCreateProject.result }}\n- SObjects Definitions: ${{ needs.sObjectsDefinitions.result }}\n- Templates: ${{ needs.templates.result }}' result: 'The workflow was cancelled.' workflow: 'actions/runs/${{ github.run_id }}' type: 'e2e'