From c6fcafe979e1a4fc8951af3dcbfc6748e3b838c7 Mon Sep 17 00:00:00 2001 From: Yuqi Zhou <86260893+yuqizhou77@users.noreply.github.com> Date: Wed, 14 Aug 2024 12:56:52 +0800 Subject: [PATCH] refactor: add back validate app pacakage action (#12222) * refactor: add back validate app pacakage action * refactor: templates --- .../common/api-plugin-existing-api/teamsapp.yml.tpl | 10 ++++++++++ templates/common/copilot-gpt-basic/teamsapp.yml.tpl | 10 ++++++++++ .../csharp/api-plugin-existing-api/teamsapp.yml.tpl | 6 ++++++ .../teamsapp.local.yml.tpl | 6 ++++++ .../api-plugin-from-scratch-bearer/teamsapp.yml.tpl | 6 ++++++ .../teamsapp.local.yml.tpl | 6 ++++++ .../api-plugin-from-scratch-oauth/teamsapp.yml.tpl | 6 ++++++ .../api-plugin-from-scratch/teamsapp.local.yml.tpl | 6 ++++++ .../csharp/api-plugin-from-scratch/teamsapp.yml.tpl | 6 ++++++ .../teamsapp.local.yml.tpl | 6 ++++++ .../api-plugin-from-scratch-bearer/teamsapp.yml.tpl | 11 +++++++++++ .../teamsapp.local.yml.tpl | 6 ++++++ .../js/api-plugin-from-scratch-oauth/teamsapp.yml.tpl | 11 +++++++++++ .../js/api-plugin-from-scratch/teamsapp.local.yml.tpl | 6 ++++++ templates/js/api-plugin-from-scratch/teamsapp.yml.tpl | 11 +++++++++++ .../teamsapp.local.yml.tpl | 6 ++++++ .../api-plugin-from-scratch-bearer/teamsapp.yml.tpl | 11 +++++++++++ .../teamsapp.local.yml.tpl | 6 ++++++ .../ts/api-plugin-from-scratch-oauth/teamsapp.yml.tpl | 11 +++++++++++ .../ts/api-plugin-from-scratch/teamsapp.local.yml.tpl | 6 ++++++ templates/ts/api-plugin-from-scratch/teamsapp.yml.tpl | 11 +++++++++++ 21 files changed, 164 insertions(+) diff --git a/templates/common/api-plugin-existing-api/teamsapp.yml.tpl b/templates/common/api-plugin-existing-api/teamsapp.yml.tpl index e4f6751f0e..57f6d6e8df 100644 --- a/templates/common/api-plugin-existing-api/teamsapp.yml.tpl +++ b/templates/common/api-plugin-existing-api/teamsapp.yml.tpl @@ -55,6 +55,11 @@ provision: manifestPath: ./appPackage/manifest.json outputZipPath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip outputJsonPath: ./appPackage/build/manifest.${{TEAMSFX_ENV}}.json + # Validate app package using validation rules + - uses: teamsApp/validateAppPackage + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Apply the Teams app manifest to an existing Teams app in # Teams Developer Portal. # Will use the app id in manifest file to determine which Teams app to update. @@ -82,6 +87,11 @@ publish: manifestPath: ./appPackage/manifest.json outputZipPath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip outputJsonPath: ./appPackage/build/manifest.${{TEAMSFX_ENV}}.json + # Validate app package using validation rules + - uses: teamsApp/validateAppPackage + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Apply the Teams app manifest to an existing Teams app in # Teams Developer Portal. # Will use the app id in manifest file to determine which Teams app to update. diff --git a/templates/common/copilot-gpt-basic/teamsapp.yml.tpl b/templates/common/copilot-gpt-basic/teamsapp.yml.tpl index d873ff069a..3a05ab5006 100644 --- a/templates/common/copilot-gpt-basic/teamsapp.yml.tpl +++ b/templates/common/copilot-gpt-basic/teamsapp.yml.tpl @@ -24,6 +24,11 @@ provision: manifestPath: ./appPackage/manifest.json outputZipPath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip outputJsonPath: ./appPackage/build/manifest.${{TEAMSFX_ENV}}.json + # Validate app package using validation rules + - uses: teamsApp/validateAppPackage + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Apply the Teams app manifest to an existing Teams app in # Teams Developer Portal. # Will use the app id in manifest file to determine which Teams app to update. @@ -51,6 +56,11 @@ publish: manifestPath: ./appPackage/manifest.json outputZipPath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip outputJsonPath: ./appPackage/build/manifest.${{TEAMSFX_ENV}}.json + # Validate app package using validation rules + - uses: teamsApp/validateAppPackage + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Apply the Teams app manifest to an existing Teams app in # Teams Developer Portal. # Will use the app id in manifest file to determine which Teams app to update. diff --git a/templates/csharp/api-plugin-existing-api/teamsapp.yml.tpl b/templates/csharp/api-plugin-existing-api/teamsapp.yml.tpl index a52dc5a43f..e1044fbdba 100644 --- a/templates/csharp/api-plugin-existing-api/teamsapp.yml.tpl +++ b/templates/csharp/api-plugin-existing-api/teamsapp.yml.tpl @@ -56,6 +56,12 @@ provision: outputZipPath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip outputJsonPath: ./appPackage/build/manifest.${{TEAMSFX_ENV}}.json + # Validate app package using validation rules + - uses: teamsApp/validateAppPackage + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Apply the Teams app manifest to an existing Teams app in # Teams Developer Portal. # Will use the app id in manifest file to determine which Teams app to update. diff --git a/templates/csharp/api-plugin-from-scratch-bearer/teamsapp.local.yml.tpl b/templates/csharp/api-plugin-from-scratch-bearer/teamsapp.local.yml.tpl index 0a90608fd2..7112db8f68 100644 --- a/templates/csharp/api-plugin-from-scratch-bearer/teamsapp.local.yml.tpl +++ b/templates/csharp/api-plugin-from-scratch-bearer/teamsapp.local.yml.tpl @@ -75,6 +75,12 @@ provision: outputZipPath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip outputJsonPath: ./appPackage/build/manifest.${{TEAMSFX_ENV}}.json + # Validate app package using validation rules + - uses: teamsApp/validateAppPackage + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Apply the Teams app manifest to an existing Teams app in # Teams Developer Portal. # Will use the app id in manifest file to determine which Teams app to update. diff --git a/templates/csharp/api-plugin-from-scratch-bearer/teamsapp.yml.tpl b/templates/csharp/api-plugin-from-scratch-bearer/teamsapp.yml.tpl index 452e954471..bc49de1100 100644 --- a/templates/csharp/api-plugin-from-scratch-bearer/teamsapp.yml.tpl +++ b/templates/csharp/api-plugin-from-scratch-bearer/teamsapp.yml.tpl @@ -66,6 +66,12 @@ provision: outputZipPath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip outputJsonPath: ./appPackage/build/manifest.${{TEAMSFX_ENV}}.json + # Validate app package using validation rules + - uses: teamsApp/validateAppPackage + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Apply the Teams app manifest to an existing Teams app in # Teams Developer Portal. # Will use the app id in manifest file to determine which Teams app to update. diff --git a/templates/csharp/api-plugin-from-scratch-oauth/teamsapp.local.yml.tpl b/templates/csharp/api-plugin-from-scratch-oauth/teamsapp.local.yml.tpl index 7f8d7eb61a..36f9e1da98 100644 --- a/templates/csharp/api-plugin-from-scratch-oauth/teamsapp.local.yml.tpl +++ b/templates/csharp/api-plugin-from-scratch-oauth/teamsapp.local.yml.tpl @@ -28,6 +28,12 @@ provision: outputZipPath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip outputJsonPath: ./appPackage/build/manifest.${{TEAMSFX_ENV}}.json + # Validate app package using validation rules + - uses: teamsApp/validateAppPackage + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Apply the Teams app manifest to an existing Teams app in # Teams Developer Portal. # Will use the app id in manifest file to determine which Teams app to update. diff --git a/templates/csharp/api-plugin-from-scratch-oauth/teamsapp.yml.tpl b/templates/csharp/api-plugin-from-scratch-oauth/teamsapp.yml.tpl index 06496492f9..6a54e0b0c5 100644 --- a/templates/csharp/api-plugin-from-scratch-oauth/teamsapp.yml.tpl +++ b/templates/csharp/api-plugin-from-scratch-oauth/teamsapp.yml.tpl @@ -97,6 +97,12 @@ provision: outputZipPath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip outputJsonPath: ./appPackage/build/manifest.${{TEAMSFX_ENV}}.json + # Validate app package using validation rules + - uses: teamsApp/validateAppPackage + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Apply the Teams app manifest to an existing Teams app in # Teams Developer Portal. # Will use the app id in manifest file to determine which Teams app to update. diff --git a/templates/csharp/api-plugin-from-scratch/teamsapp.local.yml.tpl b/templates/csharp/api-plugin-from-scratch/teamsapp.local.yml.tpl index 7f8d7eb61a..36f9e1da98 100644 --- a/templates/csharp/api-plugin-from-scratch/teamsapp.local.yml.tpl +++ b/templates/csharp/api-plugin-from-scratch/teamsapp.local.yml.tpl @@ -28,6 +28,12 @@ provision: outputZipPath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip outputJsonPath: ./appPackage/build/manifest.${{TEAMSFX_ENV}}.json + # Validate app package using validation rules + - uses: teamsApp/validateAppPackage + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Apply the Teams app manifest to an existing Teams app in # Teams Developer Portal. # Will use the app id in manifest file to determine which Teams app to update. diff --git a/templates/csharp/api-plugin-from-scratch/teamsapp.yml.tpl b/templates/csharp/api-plugin-from-scratch/teamsapp.yml.tpl index 6199bdbb36..bc3e7f4426 100644 --- a/templates/csharp/api-plugin-from-scratch/teamsapp.yml.tpl +++ b/templates/csharp/api-plugin-from-scratch/teamsapp.yml.tpl @@ -50,6 +50,12 @@ provision: outputZipPath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip outputJsonPath: ./appPackage/build/manifest.${{TEAMSFX_ENV}}.json + # Validate app package using validation rules + - uses: teamsApp/validateAppPackage + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Apply the Teams app manifest to an existing Teams app in # Teams Developer Portal. # Will use the app id in manifest file to determine which Teams app to update. diff --git a/templates/js/api-plugin-from-scratch-bearer/teamsapp.local.yml.tpl b/templates/js/api-plugin-from-scratch-bearer/teamsapp.local.yml.tpl index 1af74e454c..547a5130eb 100644 --- a/templates/js/api-plugin-from-scratch-bearer/teamsapp.local.yml.tpl +++ b/templates/js/api-plugin-from-scratch-bearer/teamsapp.local.yml.tpl @@ -56,6 +56,12 @@ provision: outputZipPath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip outputJsonPath: ./appPackage/build/manifest.${{TEAMSFX_ENV}}.json + # Validate app package using validation rules + - uses: teamsApp/validateAppPackage + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Apply the Teams app manifest to an existing Teams app in # Teams Developer Portal. # Will use the app id in manifest file to determine which Teams app to update. diff --git a/templates/js/api-plugin-from-scratch-bearer/teamsapp.yml.tpl b/templates/js/api-plugin-from-scratch-bearer/teamsapp.yml.tpl index 62c497180c..84ff3817eb 100644 --- a/templates/js/api-plugin-from-scratch-bearer/teamsapp.yml.tpl +++ b/templates/js/api-plugin-from-scratch-bearer/teamsapp.yml.tpl @@ -66,6 +66,12 @@ provision: outputZipPath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip outputJsonPath: ./appPackage/build/manifest.${{TEAMSFX_ENV}}.json + # Validate app package using validation rules + - uses: teamsApp/validateAppPackage + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Apply the Teams app manifest to an existing Teams app in # Teams Developer Portal. # Will use the app id in manifest file to determine which Teams app to update. @@ -121,6 +127,11 @@ publish: manifestPath: ./appPackage/manifest.json outputZipPath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip outputJsonPath: ./appPackage/build/manifest.${{TEAMSFX_ENV}}.json + # Validate app package using validation rules + - uses: teamsApp/validateAppPackage + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Apply the Teams app manifest to an existing Teams app in # Teams Developer Portal. # Will use the app id in manifest file to determine which Teams app to update. diff --git a/templates/js/api-plugin-from-scratch-oauth/teamsapp.local.yml.tpl b/templates/js/api-plugin-from-scratch-oauth/teamsapp.local.yml.tpl index e3004b569f..fed518b8fe 100644 --- a/templates/js/api-plugin-from-scratch-oauth/teamsapp.local.yml.tpl +++ b/templates/js/api-plugin-from-scratch-oauth/teamsapp.local.yml.tpl @@ -29,6 +29,12 @@ provision: outputZipPath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip outputJsonPath: ./appPackage/build/manifest.${{TEAMSFX_ENV}}.json + # Validate app package using validation rules + - uses: teamsApp/validateAppPackage + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Apply the Teams app manifest to an existing Teams app in # Teams Developer Portal. # Will use the app id in manifest file to determine which Teams app to update. diff --git a/templates/js/api-plugin-from-scratch-oauth/teamsapp.yml.tpl b/templates/js/api-plugin-from-scratch-oauth/teamsapp.yml.tpl index 5b9a79674f..664021ca86 100644 --- a/templates/js/api-plugin-from-scratch-oauth/teamsapp.yml.tpl +++ b/templates/js/api-plugin-from-scratch-oauth/teamsapp.yml.tpl @@ -97,6 +97,12 @@ provision: outputZipPath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip outputJsonPath: ./appPackage/build/manifest.${{TEAMSFX_ENV}}.json + # Validate app package using validation rules + - uses: teamsApp/validateAppPackage + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Apply the Teams app manifest to an existing Teams app in # Teams Developer Portal. # Will use the app id in manifest file to determine which Teams app to update. @@ -147,6 +153,11 @@ publish: manifestPath: ./appPackage/manifest.json outputZipPath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip outputJsonPath: ./appPackage/build/manifest.${{TEAMSFX_ENV}}.json + # Validate app package using validation rules + - uses: teamsApp/validateAppPackage + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Apply the Teams app manifest to an existing Teams app in # Teams Developer Portal. # Will use the app id in manifest file to determine which Teams app to update. diff --git a/templates/js/api-plugin-from-scratch/teamsapp.local.yml.tpl b/templates/js/api-plugin-from-scratch/teamsapp.local.yml.tpl index e3004b569f..fed518b8fe 100644 --- a/templates/js/api-plugin-from-scratch/teamsapp.local.yml.tpl +++ b/templates/js/api-plugin-from-scratch/teamsapp.local.yml.tpl @@ -29,6 +29,12 @@ provision: outputZipPath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip outputJsonPath: ./appPackage/build/manifest.${{TEAMSFX_ENV}}.json + # Validate app package using validation rules + - uses: teamsApp/validateAppPackage + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Apply the Teams app manifest to an existing Teams app in # Teams Developer Portal. # Will use the app id in manifest file to determine which Teams app to update. diff --git a/templates/js/api-plugin-from-scratch/teamsapp.yml.tpl b/templates/js/api-plugin-from-scratch/teamsapp.yml.tpl index 47ec8b27b7..e186f8e7cf 100644 --- a/templates/js/api-plugin-from-scratch/teamsapp.yml.tpl +++ b/templates/js/api-plugin-from-scratch/teamsapp.yml.tpl @@ -50,6 +50,12 @@ provision: outputZipPath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip outputJsonPath: ./appPackage/build/manifest.${{TEAMSFX_ENV}}.json + # Validate app package using validation rules + - uses: teamsApp/validateAppPackage + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Apply the Teams app manifest to an existing Teams app in # Teams Developer Portal. # Will use the app id in manifest file to determine which Teams app to update. @@ -100,6 +106,11 @@ publish: manifestPath: ./appPackage/manifest.json outputZipPath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip outputJsonPath: ./appPackage/build/manifest.${{TEAMSFX_ENV}}.json + # Validate app package using validation rules + - uses: teamsApp/validateAppPackage + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Apply the Teams app manifest to an existing Teams app in # Teams Developer Portal. # Will use the app id in manifest file to determine which Teams app to update. diff --git a/templates/ts/api-plugin-from-scratch-bearer/teamsapp.local.yml.tpl b/templates/ts/api-plugin-from-scratch-bearer/teamsapp.local.yml.tpl index ca20721fb7..f4ea0f9c27 100644 --- a/templates/ts/api-plugin-from-scratch-bearer/teamsapp.local.yml.tpl +++ b/templates/ts/api-plugin-from-scratch-bearer/teamsapp.local.yml.tpl @@ -56,6 +56,12 @@ provision: outputZipPath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip outputJsonPath: ./appPackage/build/manifest.${{TEAMSFX_ENV}}.json + # Validate app package using validation rules + - uses: teamsApp/validateAppPackage + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Apply the Teams app manifest to an existing Teams app in # Teams Developer Portal. # Will use the app id in manifest file to determine which Teams app to update. diff --git a/templates/ts/api-plugin-from-scratch-bearer/teamsapp.yml.tpl b/templates/ts/api-plugin-from-scratch-bearer/teamsapp.yml.tpl index 62c497180c..ad88d173bf 100644 --- a/templates/ts/api-plugin-from-scratch-bearer/teamsapp.yml.tpl +++ b/templates/ts/api-plugin-from-scratch-bearer/teamsapp.yml.tpl @@ -66,6 +66,12 @@ provision: outputZipPath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip outputJsonPath: ./appPackage/build/manifest.${{TEAMSFX_ENV}}.json + # Validate app package using validation rules + - uses: teamsApp/validateAppPackage + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Apply the Teams app manifest to an existing Teams app in # Teams Developer Portal. # Will use the app id in manifest file to determine which Teams app to update. @@ -121,6 +127,11 @@ publish: manifestPath: ./appPackage/manifest.json outputZipPath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip outputJsonPath: ./appPackage/build/manifest.${{TEAMSFX_ENV}}.json + # Validate app package using validation rules + - uses: teamsApp/validateAppPackage + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Apply the Teams app manifest to an existing Teams app in # Teams Developer Portal. # Will use the app id in manifest file to determine which Teams app to update. diff --git a/templates/ts/api-plugin-from-scratch-oauth/teamsapp.local.yml.tpl b/templates/ts/api-plugin-from-scratch-oauth/teamsapp.local.yml.tpl index e3004b569f..7d8d0b0886 100644 --- a/templates/ts/api-plugin-from-scratch-oauth/teamsapp.local.yml.tpl +++ b/templates/ts/api-plugin-from-scratch-oauth/teamsapp.local.yml.tpl @@ -29,6 +29,12 @@ provision: outputZipPath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip outputJsonPath: ./appPackage/build/manifest.${{TEAMSFX_ENV}}.json + # Validate app package using validation rules + - uses: teamsApp/validateAppPackage + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Apply the Teams app manifest to an existing Teams app in # Teams Developer Portal. # Will use the app id in manifest file to determine which Teams app to update. diff --git a/templates/ts/api-plugin-from-scratch-oauth/teamsapp.yml.tpl b/templates/ts/api-plugin-from-scratch-oauth/teamsapp.yml.tpl index 71dc5c33fb..7112a391b9 100644 --- a/templates/ts/api-plugin-from-scratch-oauth/teamsapp.yml.tpl +++ b/templates/ts/api-plugin-from-scratch-oauth/teamsapp.yml.tpl @@ -97,6 +97,12 @@ provision: outputZipPath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip outputJsonPath: ./appPackage/build/manifest.${{TEAMSFX_ENV}}.json + # Validate app package using validation rules + - uses: teamsApp/validateAppPackage + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Apply the Teams app manifest to an existing Teams app in # Teams Developer Portal. # Will use the app id in manifest file to determine which Teams app to update. @@ -152,6 +158,11 @@ publish: manifestPath: ./appPackage/manifest.json outputZipPath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip outputJsonPath: ./appPackage/build/manifest.${{TEAMSFX_ENV}}.json + # Validate app package using validation rules + - uses: teamsApp/validateAppPackage + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Apply the Teams app manifest to an existing Teams app in # Teams Developer Portal. # Will use the app id in manifest file to determine which Teams app to update. diff --git a/templates/ts/api-plugin-from-scratch/teamsapp.local.yml.tpl b/templates/ts/api-plugin-from-scratch/teamsapp.local.yml.tpl index e3004b569f..fed518b8fe 100644 --- a/templates/ts/api-plugin-from-scratch/teamsapp.local.yml.tpl +++ b/templates/ts/api-plugin-from-scratch/teamsapp.local.yml.tpl @@ -29,6 +29,12 @@ provision: outputZipPath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip outputJsonPath: ./appPackage/build/manifest.${{TEAMSFX_ENV}}.json + # Validate app package using validation rules + - uses: teamsApp/validateAppPackage + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Apply the Teams app manifest to an existing Teams app in # Teams Developer Portal. # Will use the app id in manifest file to determine which Teams app to update. diff --git a/templates/ts/api-plugin-from-scratch/teamsapp.yml.tpl b/templates/ts/api-plugin-from-scratch/teamsapp.yml.tpl index f4707e44bd..971c0f7e85 100644 --- a/templates/ts/api-plugin-from-scratch/teamsapp.yml.tpl +++ b/templates/ts/api-plugin-from-scratch/teamsapp.yml.tpl @@ -50,6 +50,12 @@ provision: outputZipPath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip outputJsonPath: ./appPackage/build/manifest.${{TEAMSFX_ENV}}.json + # Validate app package using validation rules + - uses: teamsApp/validateAppPackage + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip + # Apply the Teams app manifest to an existing Teams app in # Teams Developer Portal. # Will use the app id in manifest file to determine which Teams app to update. @@ -105,6 +111,11 @@ publish: manifestPath: ./appPackage/manifest.json outputZipPath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip outputJsonPath: ./appPackage/build/manifest.${{TEAMSFX_ENV}}.json + # Validate app package using validation rules + - uses: teamsApp/validateAppPackage + with: + # Relative path to this file. This is the path for built zip file. + appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip # Apply the Teams app manifest to an existing Teams app in # Teams Developer Portal. # Will use the app id in manifest file to determine which Teams app to update.