diff --git a/packages/fx-core/src/component/driver/teamsApp/validateTestCases.ts b/packages/fx-core/src/component/driver/teamsApp/validateTestCases.ts index a4c1c952b5..bd200992fc 100644 --- a/packages/fx-core/src/component/driver/teamsApp/validateTestCases.ts +++ b/packages/fx-core/src/component/driver/teamsApp/validateTestCases.ts @@ -120,13 +120,6 @@ export class ValidateWithTestCasesDriver implements StepDriver { ]; context.ui?.showMessage("info", message, false); } else { - const message = getLocalizedString( - "driver.teamsApp.progressBar.validateWithTestCases.step", - response.status, - `${getAppStudioEndpoint()}/apps/${manifest.id}/app-validation` - ); - context.logProvider.info(message); - // Do not await the final validation result, return immediately void this.runningBackgroundJob(args, context, appStudioToken, response, manifest.id); } @@ -170,13 +163,13 @@ export class ValidateWithTestCasesDriver implements StepDriver { resultResp.status !== AsyncAppValidationStatus.Completed && resultResp.status !== AsyncAppValidationStatus.Aborted ) { - await waitSeconds(CEHCK_VALIDATION_RESULTS_INTERVAL_SECONDS); const message = getLocalizedString( "driver.teamsApp.progressBar.validateWithTestCases.step", resultResp.status, validationRequestListUrl ); context.logProvider.info(message); + await waitSeconds(CEHCK_VALIDATION_RESULTS_INTERVAL_SECONDS); resultResp = await AppStudioClient.getAppValidationById( resultResp.appValidationId, appStudioToken diff --git a/templates/common/copilot-plugin-existing-api-api-key/teamsapp.yml.tpl b/templates/common/copilot-plugin-existing-api-api-key/teamsapp.yml.tpl index 322cd6b3b6..d39774ec18 100644 --- a/templates/common/copilot-plugin-existing-api-api-key/teamsapp.yml.tpl +++ b/templates/common/copilot-plugin-existing-api-api-key/teamsapp.yml.tpl @@ -92,6 +92,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/common/copilot-plugin-existing-api/teamsapp.yml.tpl b/templates/common/copilot-plugin-existing-api/teamsapp.yml.tpl index 244da0baad..9b93ac8231 100644 --- a/templates/common/copilot-plugin-existing-api/teamsapp.yml.tpl +++ b/templates/common/copilot-plugin-existing-api/teamsapp.yml.tpl @@ -78,6 +78,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/common/copilot-plugin-from-oai-plugin/teamsapp.yml.tpl b/templates/common/copilot-plugin-from-oai-plugin/teamsapp.yml.tpl index 244da0baad..9b93ac8231 100644 --- a/templates/common/copilot-plugin-from-oai-plugin/teamsapp.yml.tpl +++ b/templates/common/copilot-plugin-from-oai-plugin/teamsapp.yml.tpl @@ -78,6 +78,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/constraints/yml/actions/teamsAppValidateForTestCases.mustache b/templates/constraints/yml/actions/teamsAppValidateForTestCases.mustache new file mode 100644 index 0000000000..cd37a13f85 --- /dev/null +++ b/templates/constraints/yml/actions/teamsAppValidateForTestCases.mustache @@ -0,0 +1,5 @@ + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip \ No newline at end of file diff --git a/templates/constraints/yml/templates/common/copilot-plugin-existing-api-api-key/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/common/copilot-plugin-existing-api-api-key/teamsapp.yml.tpl.mustache index 208e5eeb4c..70662766e1 100644 --- a/templates/constraints/yml/templates/common/copilot-plugin-existing-api-api-key/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/common/copilot-plugin-existing-api-api-key/teamsapp.yml.tpl.mustache @@ -20,4 +20,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/common/copilot-plugin-existing-api/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/common/copilot-plugin-existing-api/teamsapp.yml.tpl.mustache index 8b6ead81b5..c5b9bcae57 100644 --- a/templates/constraints/yml/templates/common/copilot-plugin-existing-api/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/common/copilot-plugin-existing-api/teamsapp.yml.tpl.mustache @@ -18,4 +18,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/common/copilot-plugin-from-oai-plugin/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/common/copilot-plugin-from-oai-plugin/teamsapp.yml.tpl.mustache index 8b6ead81b5..c5b9bcae57 100644 --- a/templates/constraints/yml/templates/common/copilot-plugin-from-oai-plugin/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/common/copilot-plugin-from-oai-plugin/teamsapp.yml.tpl.mustache @@ -18,4 +18,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/js/api-message-extension-sso/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/js/api-message-extension-sso/teamsapp.yml.tpl.mustache index f08ea877a9..5eeb7544fa 100644 --- a/templates/constraints/yml/templates/js/api-message-extension-sso/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/js/api-message-extension-sso/teamsapp.yml.tpl.mustache @@ -34,4 +34,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/js/api-plugin-from-scratch/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/js/api-plugin-from-scratch/teamsapp.yml.tpl.mustache index 9fcbacb22a..cbee548e91 100644 --- a/templates/constraints/yml/templates/js/api-plugin-from-scratch/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/js/api-plugin-from-scratch/teamsapp.yml.tpl.mustache @@ -30,4 +30,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/js/command-and-response/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/js/command-and-response/teamsapp.yml.tpl.mustache index d6f3e52be3..605a13ac9e 100644 --- a/templates/constraints/yml/templates/js/command-and-response/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/js/command-and-response/teamsapp.yml.tpl.mustache @@ -26,4 +26,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/js/copilot-plugin-from-scratch-api-key/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/js/copilot-plugin-from-scratch-api-key/teamsapp.yml.tpl.mustache index d674c31b24..f1e4a46dfa 100644 --- a/templates/constraints/yml/templates/js/copilot-plugin-from-scratch-api-key/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/js/copilot-plugin-from-scratch-api-key/teamsapp.yml.tpl.mustache @@ -34,4 +34,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/js/copilot-plugin-from-scratch/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/js/copilot-plugin-from-scratch/teamsapp.yml.tpl.mustache index 9fcbacb22a..cbee548e91 100644 --- a/templates/constraints/yml/templates/js/copilot-plugin-from-scratch/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/js/copilot-plugin-from-scratch/teamsapp.yml.tpl.mustache @@ -30,4 +30,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/js/dashboard-tab/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/js/dashboard-tab/teamsapp.yml.tpl.mustache index 0fb7f4d554..77e01a5df8 100644 --- a/templates/constraints/yml/templates/js/dashboard-tab/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/js/dashboard-tab/teamsapp.yml.tpl.mustache @@ -28,4 +28,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/js/default-bot-message-extension/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/js/default-bot-message-extension/teamsapp.yml.tpl.mustache index 62e1307243..b03b955f72 100644 --- a/templates/constraints/yml/templates/js/default-bot-message-extension/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/js/default-bot-message-extension/teamsapp.yml.tpl.mustache @@ -26,4 +26,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/js/default-bot/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/js/default-bot/teamsapp.yml.tpl.mustache index 62e1307243..b03b955f72 100644 --- a/templates/constraints/yml/templates/js/default-bot/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/js/default-bot/teamsapp.yml.tpl.mustache @@ -26,4 +26,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/js/link-unfurling/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/js/link-unfurling/teamsapp.yml.tpl.mustache index 1175a7b75d..7044705852 100644 --- a/templates/constraints/yml/templates/js/link-unfurling/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/js/link-unfurling/teamsapp.yml.tpl.mustache @@ -27,4 +27,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/js/m365-message-extension/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/js/m365-message-extension/teamsapp.yml.tpl.mustache index 042fd4632c..06ca6967e0 100644 --- a/templates/constraints/yml/templates/js/m365-message-extension/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/js/m365-message-extension/teamsapp.yml.tpl.mustache @@ -27,4 +27,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/js/message-extension-copilot/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/js/message-extension-copilot/teamsapp.yml.tpl.mustache index 042fd4632c..06ca6967e0 100644 --- a/templates/constraints/yml/templates/js/message-extension-copilot/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/js/message-extension-copilot/teamsapp.yml.tpl.mustache @@ -27,4 +27,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/js/message-extension/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/js/message-extension/teamsapp.yml.tpl.mustache index 042fd4632c..06ca6967e0 100644 --- a/templates/constraints/yml/templates/js/message-extension/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/js/message-extension/teamsapp.yml.tpl.mustache @@ -27,4 +27,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/js/non-sso-tab-default-bot/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/js/non-sso-tab-default-bot/teamsapp.yml.tpl.mustache index d9e389db78..ed4087be89 100644 --- a/templates/constraints/yml/templates/js/non-sso-tab-default-bot/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/js/non-sso-tab-default-bot/teamsapp.yml.tpl.mustache @@ -30,4 +30,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/js/non-sso-tab/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/js/non-sso-tab/teamsapp.yml.tpl.mustache index 1071c83009..bcfb2cd5bc 100644 --- a/templates/constraints/yml/templates/js/non-sso-tab/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/js/non-sso-tab/teamsapp.yml.tpl.mustache @@ -25,4 +25,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/js/notification-http-timer-trigger/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/js/notification-http-timer-trigger/teamsapp.yml.tpl.mustache index 7bdbe7038f..fe3ad205e4 100644 --- a/templates/constraints/yml/templates/js/notification-http-timer-trigger/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/js/notification-http-timer-trigger/teamsapp.yml.tpl.mustache @@ -25,4 +25,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/js/notification-http-trigger/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/js/notification-http-trigger/teamsapp.yml.tpl.mustache index 7bdbe7038f..fe3ad205e4 100644 --- a/templates/constraints/yml/templates/js/notification-http-trigger/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/js/notification-http-trigger/teamsapp.yml.tpl.mustache @@ -25,4 +25,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/js/notification-restify/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/js/notification-restify/teamsapp.yml.tpl.mustache index a70accea44..5fd6caf434 100644 --- a/templates/constraints/yml/templates/js/notification-restify/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/js/notification-restify/teamsapp.yml.tpl.mustache @@ -26,4 +26,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/js/notification-timer-trigger/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/js/notification-timer-trigger/teamsapp.yml.tpl.mustache index 7bdbe7038f..fe3ad205e4 100644 --- a/templates/constraints/yml/templates/js/notification-timer-trigger/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/js/notification-timer-trigger/teamsapp.yml.tpl.mustache @@ -25,4 +25,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/js/sso-tab-with-obo-flow/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/js/sso-tab-with-obo-flow/teamsapp.yml.tpl.mustache index 48c5a3dbbd..f42c50e51a 100644 --- a/templates/constraints/yml/templates/js/sso-tab-with-obo-flow/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/js/sso-tab-with-obo-flow/teamsapp.yml.tpl.mustache @@ -39,4 +39,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/js/workflow/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/js/workflow/teamsapp.yml.tpl.mustache index a70accea44..5fd6caf434 100644 --- a/templates/constraints/yml/templates/js/workflow/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/js/workflow/teamsapp.yml.tpl.mustache @@ -26,4 +26,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/ts/api-message-extension-sso/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/ts/api-message-extension-sso/teamsapp.yml.tpl.mustache index d0b79fb865..209e4cf3aa 100644 --- a/templates/constraints/yml/templates/ts/api-message-extension-sso/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/ts/api-message-extension-sso/teamsapp.yml.tpl.mustache @@ -36,4 +36,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/ts/api-plugin-from-scratch/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/ts/api-plugin-from-scratch/teamsapp.yml.tpl.mustache index ca2cd4680c..f4d39182f2 100644 --- a/templates/constraints/yml/templates/ts/api-plugin-from-scratch/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/ts/api-plugin-from-scratch/teamsapp.yml.tpl.mustache @@ -32,4 +32,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/ts/command-and-response/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/ts/command-and-response/teamsapp.yml.tpl.mustache index 36e963a8d2..03f4030e96 100644 --- a/templates/constraints/yml/templates/ts/command-and-response/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/ts/command-and-response/teamsapp.yml.tpl.mustache @@ -27,4 +27,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/ts/copilot-plugin-from-scratch-api-key/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/ts/copilot-plugin-from-scratch-api-key/teamsapp.yml.tpl.mustache index 6a553344f6..292eefea55 100644 --- a/templates/constraints/yml/templates/ts/copilot-plugin-from-scratch-api-key/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/ts/copilot-plugin-from-scratch-api-key/teamsapp.yml.tpl.mustache @@ -36,4 +36,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/ts/copilot-plugin-from-scratch/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/ts/copilot-plugin-from-scratch/teamsapp.yml.tpl.mustache index ca2cd4680c..f4d39182f2 100644 --- a/templates/constraints/yml/templates/ts/copilot-plugin-from-scratch/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/ts/copilot-plugin-from-scratch/teamsapp.yml.tpl.mustache @@ -32,4 +32,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/ts/dashboard-tab/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/ts/dashboard-tab/teamsapp.yml.tpl.mustache index 41957c316d..a105d2c323 100644 --- a/templates/constraints/yml/templates/ts/dashboard-tab/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/ts/dashboard-tab/teamsapp.yml.tpl.mustache @@ -28,4 +28,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/ts/default-bot-message-extension/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/ts/default-bot-message-extension/teamsapp.yml.tpl.mustache index 0d9d74daf2..8eac84e749 100644 --- a/templates/constraints/yml/templates/ts/default-bot-message-extension/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/ts/default-bot-message-extension/teamsapp.yml.tpl.mustache @@ -27,4 +27,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/ts/default-bot/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/ts/default-bot/teamsapp.yml.tpl.mustache index 2e8c3c895c..e0f34efa77 100644 --- a/templates/constraints/yml/templates/ts/default-bot/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/ts/default-bot/teamsapp.yml.tpl.mustache @@ -27,4 +27,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/ts/link-unfurling/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/ts/link-unfurling/teamsapp.yml.tpl.mustache index 6c469929da..a49713c523 100644 --- a/templates/constraints/yml/templates/ts/link-unfurling/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/ts/link-unfurling/teamsapp.yml.tpl.mustache @@ -28,4 +28,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/ts/m365-message-extension/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/ts/m365-message-extension/teamsapp.yml.tpl.mustache index d601f34979..af0f30a0d8 100644 --- a/templates/constraints/yml/templates/ts/m365-message-extension/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/ts/m365-message-extension/teamsapp.yml.tpl.mustache @@ -28,4 +28,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/ts/message-extension-copilot/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/ts/message-extension-copilot/teamsapp.yml.tpl.mustache index d601f34979..af0f30a0d8 100644 --- a/templates/constraints/yml/templates/ts/message-extension-copilot/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/ts/message-extension-copilot/teamsapp.yml.tpl.mustache @@ -28,4 +28,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/ts/message-extension/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/ts/message-extension/teamsapp.yml.tpl.mustache index 6c469929da..a49713c523 100644 --- a/templates/constraints/yml/templates/ts/message-extension/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/ts/message-extension/teamsapp.yml.tpl.mustache @@ -28,4 +28,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/ts/non-sso-tab-default-bot/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/ts/non-sso-tab-default-bot/teamsapp.yml.tpl.mustache index 973441dd4e..e5cb6ac719 100644 --- a/templates/constraints/yml/templates/ts/non-sso-tab-default-bot/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/ts/non-sso-tab-default-bot/teamsapp.yml.tpl.mustache @@ -30,4 +30,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/ts/non-sso-tab/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/ts/non-sso-tab/teamsapp.yml.tpl.mustache index 36bf303f5d..67115a0db6 100644 --- a/templates/constraints/yml/templates/ts/non-sso-tab/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/ts/non-sso-tab/teamsapp.yml.tpl.mustache @@ -26,4 +26,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/ts/notification-http-timer-trigger/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/ts/notification-http-timer-trigger/teamsapp.yml.tpl.mustache index 774172e109..39e4a4a645 100644 --- a/templates/constraints/yml/templates/ts/notification-http-timer-trigger/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/ts/notification-http-timer-trigger/teamsapp.yml.tpl.mustache @@ -26,4 +26,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/ts/notification-http-trigger/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/ts/notification-http-trigger/teamsapp.yml.tpl.mustache index 774172e109..39e4a4a645 100644 --- a/templates/constraints/yml/templates/ts/notification-http-trigger/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/ts/notification-http-trigger/teamsapp.yml.tpl.mustache @@ -26,4 +26,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/ts/notification-restify/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/ts/notification-restify/teamsapp.yml.tpl.mustache index 36e963a8d2..03f4030e96 100644 --- a/templates/constraints/yml/templates/ts/notification-restify/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/ts/notification-restify/teamsapp.yml.tpl.mustache @@ -27,4 +27,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/ts/notification-timer-trigger/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/ts/notification-timer-trigger/teamsapp.yml.tpl.mustache index 774172e109..39e4a4a645 100644 --- a/templates/constraints/yml/templates/ts/notification-timer-trigger/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/ts/notification-timer-trigger/teamsapp.yml.tpl.mustache @@ -26,4 +26,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/ts/sso-tab-with-obo-flow/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/ts/sso-tab-with-obo-flow/teamsapp.yml.tpl.mustache index 5b91a8d061..957f7f5689 100644 --- a/templates/constraints/yml/templates/ts/sso-tab-with-obo-flow/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/ts/sso-tab-with-obo-flow/teamsapp.yml.tpl.mustache @@ -40,4 +40,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/constraints/yml/templates/ts/workflow/teamsapp.yml.tpl.mustache b/templates/constraints/yml/templates/ts/workflow/teamsapp.yml.tpl.mustache index 36e963a8d2..03f4030e96 100644 --- a/templates/constraints/yml/templates/ts/workflow/teamsapp.yml.tpl.mustache +++ b/templates/constraints/yml/templates/ts/workflow/teamsapp.yml.tpl.mustache @@ -27,4 +27,5 @@ publish: {{#teamsAppZipAppPackage}} {{/teamsAppZipAppPackage}} {{#teamsAppValidateAppPackage}} {{/teamsAppValidateAppPackage}} {{#teamsAppUpdate}} {{/teamsAppUpdate}} +{{#teamsAppValidateForTestCases}} {{/teamsAppValidateForTestCases}} {{#teamsAppPublishAppPackage}} {{/teamsAppPublishAppPackage}} diff --git a/templates/js/api-message-extension-sso/teamsapp.yml.tpl b/templates/js/api-message-extension-sso/teamsapp.yml.tpl index 3cbad35f50..8465dbd5e8 100644 --- a/templates/js/api-message-extension-sso/teamsapp.yml.tpl +++ b/templates/js/api-message-extension-sso/teamsapp.yml.tpl @@ -161,6 +161,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/js/api-plugin-from-scratch/teamsapp.yml.tpl b/templates/js/api-plugin-from-scratch/teamsapp.yml.tpl index 774e9b23e6..209d22f804 100644 --- a/templates/js/api-plugin-from-scratch/teamsapp.yml.tpl +++ b/templates/js/api-plugin-from-scratch/teamsapp.yml.tpl @@ -129,6 +129,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/js/command-and-response/teamsapp.yml.tpl b/templates/js/command-and-response/teamsapp.yml.tpl index a675d8dcc4..3f5dfb798b 100644 --- a/templates/js/command-and-response/teamsapp.yml.tpl +++ b/templates/js/command-and-response/teamsapp.yml.tpl @@ -129,6 +129,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/js/copilot-plugin-from-scratch-api-key/teamsapp.yml.tpl b/templates/js/copilot-plugin-from-scratch-api-key/teamsapp.yml.tpl index 0955cc52d0..81a9d1efd4 100644 --- a/templates/js/copilot-plugin-from-scratch-api-key/teamsapp.yml.tpl +++ b/templates/js/copilot-plugin-from-scratch-api-key/teamsapp.yml.tpl @@ -156,6 +156,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/js/copilot-plugin-from-scratch/teamsapp.yml.tpl b/templates/js/copilot-plugin-from-scratch/teamsapp.yml.tpl index 774e9b23e6..209d22f804 100644 --- a/templates/js/copilot-plugin-from-scratch/teamsapp.yml.tpl +++ b/templates/js/copilot-plugin-from-scratch/teamsapp.yml.tpl @@ -129,6 +129,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/js/dashboard-tab/teamsapp.yml.tpl b/templates/js/dashboard-tab/teamsapp.yml.tpl index eb278fcc12..6467186716 100644 --- a/templates/js/dashboard-tab/teamsapp.yml.tpl +++ b/templates/js/dashboard-tab/teamsapp.yml.tpl @@ -128,6 +128,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/js/default-bot-message-extension/teamsapp.yml.tpl b/templates/js/default-bot-message-extension/teamsapp.yml.tpl index 37b3b749cf..72135b3024 100644 --- a/templates/js/default-bot-message-extension/teamsapp.yml.tpl +++ b/templates/js/default-bot-message-extension/teamsapp.yml.tpl @@ -129,6 +129,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/js/default-bot/teamsapp.yml.tpl b/templates/js/default-bot/teamsapp.yml.tpl index 37b3b749cf..72135b3024 100644 --- a/templates/js/default-bot/teamsapp.yml.tpl +++ b/templates/js/default-bot/teamsapp.yml.tpl @@ -129,6 +129,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/js/link-unfurling/teamsapp.yml.tpl b/templates/js/link-unfurling/teamsapp.yml.tpl index f889c67b70..909e61831e 100644 --- a/templates/js/link-unfurling/teamsapp.yml.tpl +++ b/templates/js/link-unfurling/teamsapp.yml.tpl @@ -139,6 +139,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/js/m365-message-extension/teamsapp.yml.tpl b/templates/js/m365-message-extension/teamsapp.yml.tpl index b634e1bf99..4b48498196 100644 --- a/templates/js/m365-message-extension/teamsapp.yml.tpl +++ b/templates/js/m365-message-extension/teamsapp.yml.tpl @@ -139,6 +139,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/js/message-extension-copilot/teamsapp.yml.tpl b/templates/js/message-extension-copilot/teamsapp.yml.tpl index b634e1bf99..4b48498196 100644 --- a/templates/js/message-extension-copilot/teamsapp.yml.tpl +++ b/templates/js/message-extension-copilot/teamsapp.yml.tpl @@ -139,6 +139,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/js/message-extension/teamsapp.yml.tpl b/templates/js/message-extension/teamsapp.yml.tpl index b634e1bf99..4b48498196 100644 --- a/templates/js/message-extension/teamsapp.yml.tpl +++ b/templates/js/message-extension/teamsapp.yml.tpl @@ -139,6 +139,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/js/non-sso-tab-default-bot/teamsapp.yml.tpl b/templates/js/non-sso-tab-default-bot/teamsapp.yml.tpl index 2b6ebf3725..13091e884c 100644 --- a/templates/js/non-sso-tab-default-bot/teamsapp.yml.tpl +++ b/templates/js/non-sso-tab-default-bot/teamsapp.yml.tpl @@ -148,6 +148,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/js/non-sso-tab/teamsapp.yml.tpl b/templates/js/non-sso-tab/teamsapp.yml.tpl index 81f718b2db..90dd928f92 100644 --- a/templates/js/non-sso-tab/teamsapp.yml.tpl +++ b/templates/js/non-sso-tab/teamsapp.yml.tpl @@ -124,6 +124,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/js/notification-http-timer-trigger/teamsapp.yml.tpl b/templates/js/notification-http-timer-trigger/teamsapp.yml.tpl index fcfcefa389..8775cf5508 100644 --- a/templates/js/notification-http-timer-trigger/teamsapp.yml.tpl +++ b/templates/js/notification-http-timer-trigger/teamsapp.yml.tpl @@ -124,6 +124,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/js/notification-http-trigger/teamsapp.yml.tpl b/templates/js/notification-http-trigger/teamsapp.yml.tpl index fcfcefa389..8775cf5508 100644 --- a/templates/js/notification-http-trigger/teamsapp.yml.tpl +++ b/templates/js/notification-http-trigger/teamsapp.yml.tpl @@ -124,6 +124,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/js/notification-restify/teamsapp.yml.tpl b/templates/js/notification-restify/teamsapp.yml.tpl index d690369df8..9c0bb96728 100644 --- a/templates/js/notification-restify/teamsapp.yml.tpl +++ b/templates/js/notification-restify/teamsapp.yml.tpl @@ -129,6 +129,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/js/notification-timer-trigger/teamsapp.yml.tpl b/templates/js/notification-timer-trigger/teamsapp.yml.tpl index fcfcefa389..8775cf5508 100644 --- a/templates/js/notification-timer-trigger/teamsapp.yml.tpl +++ b/templates/js/notification-timer-trigger/teamsapp.yml.tpl @@ -124,6 +124,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/js/sso-tab-with-obo-flow/teamsapp.yml.tpl b/templates/js/sso-tab-with-obo-flow/teamsapp.yml.tpl index 9d85d2cfa8..dbe44e11f1 100644 --- a/templates/js/sso-tab-with-obo-flow/teamsapp.yml.tpl +++ b/templates/js/sso-tab-with-obo-flow/teamsapp.yml.tpl @@ -188,6 +188,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/js/workflow/teamsapp.yml.tpl b/templates/js/workflow/teamsapp.yml.tpl index d690369df8..9c0bb96728 100644 --- a/templates/js/workflow/teamsapp.yml.tpl +++ b/templates/js/workflow/teamsapp.yml.tpl @@ -129,6 +129,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/ts/api-message-extension-sso/teamsapp.yml.tpl b/templates/ts/api-message-extension-sso/teamsapp.yml.tpl index 2548124de8..bd424e1eb7 100644 --- a/templates/ts/api-message-extension-sso/teamsapp.yml.tpl +++ b/templates/ts/api-message-extension-sso/teamsapp.yml.tpl @@ -166,6 +166,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/ts/api-plugin-from-scratch/teamsapp.yml.tpl b/templates/ts/api-plugin-from-scratch/teamsapp.yml.tpl index 7f1737126c..753a111397 100644 --- a/templates/ts/api-plugin-from-scratch/teamsapp.yml.tpl +++ b/templates/ts/api-plugin-from-scratch/teamsapp.yml.tpl @@ -134,6 +134,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/ts/command-and-response/teamsapp.yml.tpl b/templates/ts/command-and-response/teamsapp.yml.tpl index bc4c8c97be..2da1aa31ae 100644 --- a/templates/ts/command-and-response/teamsapp.yml.tpl +++ b/templates/ts/command-and-response/teamsapp.yml.tpl @@ -133,6 +133,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/ts/copilot-plugin-from-scratch-api-key/teamsapp.yml.tpl b/templates/ts/copilot-plugin-from-scratch-api-key/teamsapp.yml.tpl index dbda5dd31e..b197a57069 100644 --- a/templates/ts/copilot-plugin-from-scratch-api-key/teamsapp.yml.tpl +++ b/templates/ts/copilot-plugin-from-scratch-api-key/teamsapp.yml.tpl @@ -161,6 +161,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/ts/copilot-plugin-from-scratch/teamsapp.yml.tpl b/templates/ts/copilot-plugin-from-scratch/teamsapp.yml.tpl index 7f1737126c..753a111397 100644 --- a/templates/ts/copilot-plugin-from-scratch/teamsapp.yml.tpl +++ b/templates/ts/copilot-plugin-from-scratch/teamsapp.yml.tpl @@ -134,6 +134,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/ts/dashboard-tab/teamsapp.yml.tpl b/templates/ts/dashboard-tab/teamsapp.yml.tpl index 9076e12f71..52c18dc5dc 100644 --- a/templates/ts/dashboard-tab/teamsapp.yml.tpl +++ b/templates/ts/dashboard-tab/teamsapp.yml.tpl @@ -128,6 +128,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/ts/default-bot-message-extension/teamsapp.yml.tpl b/templates/ts/default-bot-message-extension/teamsapp.yml.tpl index dab8a15ec4..8bb3fd2f1e 100644 --- a/templates/ts/default-bot-message-extension/teamsapp.yml.tpl +++ b/templates/ts/default-bot-message-extension/teamsapp.yml.tpl @@ -133,6 +133,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/ts/default-bot/teamsapp.yml.tpl b/templates/ts/default-bot/teamsapp.yml.tpl index dab8a15ec4..8bb3fd2f1e 100644 --- a/templates/ts/default-bot/teamsapp.yml.tpl +++ b/templates/ts/default-bot/teamsapp.yml.tpl @@ -133,6 +133,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/ts/link-unfurling/teamsapp.yml.tpl b/templates/ts/link-unfurling/teamsapp.yml.tpl index f4f04c1ca2..31a9606f3f 100644 --- a/templates/ts/link-unfurling/teamsapp.yml.tpl +++ b/templates/ts/link-unfurling/teamsapp.yml.tpl @@ -143,6 +143,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/ts/m365-message-extension/teamsapp.yml.tpl b/templates/ts/m365-message-extension/teamsapp.yml.tpl index f4f04c1ca2..31a9606f3f 100644 --- a/templates/ts/m365-message-extension/teamsapp.yml.tpl +++ b/templates/ts/m365-message-extension/teamsapp.yml.tpl @@ -143,6 +143,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/ts/message-extension-copilot/teamsapp.yml.tpl b/templates/ts/message-extension-copilot/teamsapp.yml.tpl index f4f04c1ca2..31a9606f3f 100644 --- a/templates/ts/message-extension-copilot/teamsapp.yml.tpl +++ b/templates/ts/message-extension-copilot/teamsapp.yml.tpl @@ -143,6 +143,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/ts/message-extension/teamsapp.yml.tpl b/templates/ts/message-extension/teamsapp.yml.tpl index f4f04c1ca2..31a9606f3f 100644 --- a/templates/ts/message-extension/teamsapp.yml.tpl +++ b/templates/ts/message-extension/teamsapp.yml.tpl @@ -143,6 +143,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/ts/non-sso-tab-default-bot/teamsapp.yml.tpl b/templates/ts/non-sso-tab-default-bot/teamsapp.yml.tpl index 2f5da42b40..626e82b35d 100644 --- a/templates/ts/non-sso-tab-default-bot/teamsapp.yml.tpl +++ b/templates/ts/non-sso-tab-default-bot/teamsapp.yml.tpl @@ -148,6 +148,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/ts/non-sso-tab/teamsapp.yml.tpl b/templates/ts/non-sso-tab/teamsapp.yml.tpl index 9a9c2de803..425fad7e91 100644 --- a/templates/ts/non-sso-tab/teamsapp.yml.tpl +++ b/templates/ts/non-sso-tab/teamsapp.yml.tpl @@ -128,6 +128,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/ts/notification-http-timer-trigger/teamsapp.yml.tpl b/templates/ts/notification-http-timer-trigger/teamsapp.yml.tpl index b6ef810ca8..b466461549 100644 --- a/templates/ts/notification-http-timer-trigger/teamsapp.yml.tpl +++ b/templates/ts/notification-http-timer-trigger/teamsapp.yml.tpl @@ -128,6 +128,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/ts/notification-http-trigger/teamsapp.yml.tpl b/templates/ts/notification-http-trigger/teamsapp.yml.tpl index b6ef810ca8..b466461549 100644 --- a/templates/ts/notification-http-trigger/teamsapp.yml.tpl +++ b/templates/ts/notification-http-trigger/teamsapp.yml.tpl @@ -128,6 +128,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/ts/notification-restify/teamsapp.yml.tpl b/templates/ts/notification-restify/teamsapp.yml.tpl index bc4c8c97be..2da1aa31ae 100644 --- a/templates/ts/notification-restify/teamsapp.yml.tpl +++ b/templates/ts/notification-restify/teamsapp.yml.tpl @@ -133,6 +133,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/ts/notification-timer-trigger/teamsapp.yml.tpl b/templates/ts/notification-timer-trigger/teamsapp.yml.tpl index b6ef810ca8..b466461549 100644 --- a/templates/ts/notification-timer-trigger/teamsapp.yml.tpl +++ b/templates/ts/notification-timer-trigger/teamsapp.yml.tpl @@ -128,6 +128,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/ts/sso-tab-with-obo-flow/teamsapp.yml.tpl b/templates/ts/sso-tab-with-obo-flow/teamsapp.yml.tpl index d4bbc508e5..317d1e7f52 100644 --- a/templates/ts/sso-tab-with-obo-flow/teamsapp.yml.tpl +++ b/templates/ts/sso-tab-with-obo-flow/teamsapp.yml.tpl @@ -193,6 +193,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval diff --git a/templates/ts/workflow/teamsapp.yml.tpl b/templates/ts/workflow/teamsapp.yml.tpl index bc4c8c97be..2da1aa31ae 100644 --- a/templates/ts/workflow/teamsapp.yml.tpl +++ b/templates/ts/workflow/teamsapp.yml.tpl @@ -133,6 +133,11 @@ publish: with: # Relative path to this file. This is the path for built zip file. appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Validate app package with the test cases Microsoft uses before they publish it + - uses: teamsApp/validateWithTestCases + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Publish the app to # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) # for review and approval