Functional Tests #1286
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Purpose: Run the product functional tests every night | |
| # The testing params are stored as a string in a CSV-like format. | |
| # Pipes separate products, and commas separate key/value pairs. | |
| # key1=value1,key2=value2|key3=value3,key4=value4... | |
| name: Functional Tests | |
| on: | |
| # Run this workflow at 12:15 (or 1:15) am | |
| # on every Mon to Fri (b/c GMT -5 or -4) | |
| schedule: | |
| - cron: "15 6 * * 1-5" # in GMT | |
| workflow_dispatch: | |
| inputs: | |
| # checkov:skip=CKV_GHA_7:Manual inputs are desired. | |
| product: | |
| description: Product to test (defaults to all) | |
| type: choice | |
| required: true | |
| default: all | |
| options: | |
| - all | |
| - securitysuite | |
| - entra | |
| - exchange | |
| - powerplatform | |
| - sharepoint | |
| - teams | |
| EmailOnFailure: | |
| description: Check to send an email on failure | |
| type: boolean | |
| required: true | |
| default: false | |
| # For testing only | |
| # push: | |
| # paths: | |
| # - ".github/workflows/test_production_function.yaml" | |
| # - ".github/workflows/function_test_teams.yaml" | |
| # - ".github/workflows/publish_private_package.yaml" | |
| # - ".github/workflows/function_test_securitysuite.yaml" | |
| # - ".github/workflows/function_test_entra.yaml" | |
| # - ".github/workflows/function_test_exchange.yaml" | |
| # - ".github/workflows/function_test_powerplatform.yaml" | |
| # - ".github/workflows/function_test_powerbi.yaml" | |
| # - ".github/workflows/function_test_sharepoint.yaml" | |
| # - ".github/workflows/function_test_teams.yaml" | |
| # - ".github/actions/extract-email/action.yaml" | |
| # - ".github/actions/get-thumbprint/action.yaml" | |
| # - ".github/actions/import-pfx/action.yaml" | |
| # - ".github/actions/test-product/action.yaml" | |
| permissions: read-all | |
| env: | |
| GalleryName: PrivateScubaGearGallery | |
| jobs: | |
| publish: | |
| name: Publish Package | |
| uses: ./.github/workflows/publish_private_package.yaml | |
| permissions: | |
| contents: write | |
| id-token: write | |
| secrets: | |
| ClientId: ${{ secrets.AZURE_CLIENT_ID }} | |
| TenantId: ${{ secrets.AZURE_TENANT_ID }} | |
| SubscriptionId: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | |
| KeyVaultInfo: ${{ secrets.SCUBA_KEY_VAULT_PROD}} | |
| test_security_suite: | |
| name: Test Security Suite | |
| if: ${{ inputs.product == '' || inputs.product == 'all' || inputs.product == 'securitysuite' }} | |
| uses: ./.github/workflows/function_test_securitysuite.yaml | |
| permissions: | |
| contents: write | |
| id-token: write | |
| with: | |
| # Default to true when running on a schedule and the input is missing | |
| EmailOnFailure: ${{ !contains(inputs.EmailOnFailure, 'false') }} | |
| GitHubEventSchedule: ${{ github.event.schedule }} | |
| GitHubEventName: ${{ github.event_name }} | |
| SelectedProduct: ${{ inputs.product || 'all' }} | |
| RefName: ${{ github.ref_name }} | |
| secrets: | |
| PfxBase64: ${{ secrets.NIGHTLY_TEST_BUILD_PFX }} | |
| PfxPassword: ${{ secrets.NIGHTLY_TEST_BUILD_PW }} | |
| TestParams: ${{ secrets.NIGHTLY_TEST_BUILD_PARAMS }} | |
| TestParamsDev: ${{ secrets.NIGHTLY_TEST_BUILD_PARAMS_DEV }} | |
| NotifierUsername: ${{ secrets.NOTIFIER_EMAIL_USERNAME }} | |
| NotifierPassword: ${{ secrets.NOTIFIER_EMAIL_PASSWORD }} | |
| needs: | |
| - publish | |
| test_entra: | |
| name: Test Entra | |
| if: ${{ inputs.product == '' || inputs.product == 'all' || inputs.product == 'entra' }} | |
| uses: ./.github/workflows/function_test_entra.yaml | |
| permissions: | |
| contents: write | |
| id-token: write | |
| with: | |
| # Default to true when running on a schedule and the input is missing | |
| EmailOnFailure: ${{ !contains(inputs.EmailOnFailure, 'false') }} | |
| GitHubEventSchedule: ${{ github.event.schedule }} | |
| GitHubEventName: ${{ github.event_name }} | |
| SelectedProduct: ${{ inputs.product || 'all' }} | |
| RefName: ${{ github.ref_name }} | |
| secrets: | |
| PfxBase64: ${{ secrets.NIGHTLY_TEST_BUILD_PFX }} | |
| PfxPassword: ${{ secrets.NIGHTLY_TEST_BUILD_PW }} | |
| TestParams: ${{ secrets.NIGHTLY_TEST_BUILD_PARAMS }} | |
| TestParamsDev: ${{ secrets.NIGHTLY_TEST_BUILD_PARAMS_DEV }} | |
| NotifierUsername: ${{ secrets.NOTIFIER_EMAIL_USERNAME }} | |
| NotifierPassword: ${{ secrets.NOTIFIER_EMAIL_PASSWORD }} | |
| needs: | |
| - publish | |
| test_exchange: | |
| name: Test Exchange | |
| if: ${{ inputs.product == '' || inputs.product == 'all' || inputs.product == 'exchange' }} | |
| uses: ./.github/workflows/function_test_exchange.yaml | |
| permissions: | |
| contents: write | |
| id-token: write | |
| with: | |
| # Default to true when running on a schedule and the input is missing | |
| EmailOnFailure: ${{ !contains(inputs.EmailOnFailure, 'false') }} | |
| GitHubEventSchedule: ${{ github.event.schedule }} | |
| GitHubEventName: ${{ github.event_name }} | |
| SelectedProduct: ${{ inputs.product || 'all' }} | |
| RefName: ${{ github.ref_name }} | |
| secrets: | |
| PfxBase64: ${{ secrets.NIGHTLY_TEST_BUILD_PFX }} | |
| PfxPassword: ${{ secrets.NIGHTLY_TEST_BUILD_PW }} | |
| TestParams: ${{ secrets.NIGHTLY_TEST_BUILD_PARAMS }} | |
| TestParamsDev: ${{ secrets.NIGHTLY_TEST_BUILD_PARAMS_DEV }} | |
| NotifierUsername: ${{ secrets.NOTIFIER_EMAIL_USERNAME }} | |
| NotifierPassword: ${{ secrets.NOTIFIER_EMAIL_PASSWORD }} | |
| needs: | |
| - publish | |
| test_power_platform: | |
| name: Test Power Platform | |
| if: ${{ inputs.product == '' || inputs.product == 'all' || inputs.product == 'powerplatform' }} | |
| uses: ./.github/workflows/function_test_powerplatform.yaml | |
| permissions: | |
| contents: write | |
| id-token: write | |
| with: | |
| # Default to true when running on a schedule and the input is missing | |
| EmailOnFailure: ${{ !contains(inputs.EmailOnFailure, 'false') }} | |
| GitHubEventSchedule: ${{ github.event.schedule }} | |
| GitHubEventName: ${{ github.event_name }} | |
| SelectedProduct: ${{ inputs.product || 'all' }} | |
| RefName: ${{ github.ref_name }} | |
| secrets: | |
| PfxBase64: ${{ secrets.NIGHTLY_TEST_BUILD_PFX }} | |
| PfxPassword: ${{ secrets.NIGHTLY_TEST_BUILD_PW }} | |
| TestParams: ${{ secrets.NIGHTLY_TEST_BUILD_PARAMS }} | |
| TestParamsDev: ${{ secrets.NIGHTLY_TEST_BUILD_PARAMS_DEV }} | |
| NotifierUsername: ${{ secrets.NOTIFIER_EMAIL_USERNAME }} | |
| NotifierPassword: ${{ secrets.NOTIFIER_EMAIL_PASSWORD }} | |
| needs: | |
| - publish | |
| # test_powerbi: | |
| # name: Test Power BI | |
| # uses: ./.github/workflows/function_test_powerbi.yaml | |
| # permissions: | |
| # contents: write | |
| # id-token: write | |
| # with: | |
| # # Default to true when running on a schedule and the input is missing | |
| # EmailOnFailure: ${{ !contains(inputs.EmailOnFailure, 'false') }} | |
| # GitHubEventSchedule: ${{ github.event.schedule }} | |
| # GitHubEventName: ${{ github.event_name }} | |
| # secrets: | |
| # PfxBase64: ${{ secrets.NIGHTLY_TEST_BUILD_PFX }} | |
| # PfxPassword: ${{ secrets.NIGHTLY_TEST_BUILD_PW }} | |
| # TestParams: ${{ secrets.NIGHTLY_TEST_BUILD_PARAMS }} | |
| # TestParamsDev: ${{ secrets.NIGHTLY_TEST_BUILD_PARAMS_DEV }} | |
| # NotifierUsername: ${{ secrets.NOTIFIER_EMAIL_USERNAME }} | |
| # NotifierPassword: ${{ secrets.NOTIFIER_EMAIL_PASSWORD }} | |
| # needs: | |
| # - publish | |
| test_sharepoint: | |
| name: Test Sharepoint | |
| if: ${{ inputs.product == '' || inputs.product == 'all' || inputs.product == 'sharepoint' }} | |
| uses: ./.github/workflows/function_test_sharepoint.yaml | |
| permissions: | |
| contents: write | |
| id-token: write | |
| with: | |
| # Default to true when running on a schedule and the input is missing | |
| EmailOnFailure: ${{ !contains(inputs.EmailOnFailure, 'false') }} | |
| GitHubEventSchedule: ${{ github.event.schedule }} | |
| GitHubEventName: ${{ github.event_name }} | |
| SelectedProduct: ${{ inputs.product || 'all' }} | |
| RefName: ${{ github.ref_name }} | |
| secrets: | |
| PfxBase64: ${{ secrets.NIGHTLY_TEST_BUILD_PFX }} | |
| PfxPassword: ${{ secrets.NIGHTLY_TEST_BUILD_PW }} | |
| TestParams: ${{ secrets.NIGHTLY_TEST_BUILD_PARAMS }} | |
| TestParamsDev: ${{ secrets.NIGHTLY_TEST_BUILD_PARAMS_DEV }} | |
| NotifierUsername: ${{ secrets.NOTIFIER_EMAIL_USERNAME }} | |
| NotifierPassword: ${{ secrets.NOTIFIER_EMAIL_PASSWORD }} | |
| needs: | |
| - publish | |
| test_teams: | |
| name: Test Teams | |
| if: ${{ inputs.product == '' || inputs.product == 'all' || inputs.product == 'teams' }} | |
| uses: ./.github/workflows/function_test_teams.yaml | |
| permissions: | |
| contents: write | |
| id-token: write | |
| with: | |
| # Default to true when running on a schedule and the input is missing | |
| EmailOnFailure: ${{ !contains(inputs.EmailOnFailure, 'false') }} | |
| GitHubEventSchedule: ${{ github.event.schedule }} | |
| GitHubEventName: ${{ github.event_name }} | |
| SelectedProduct: ${{ inputs.product || 'all' }} | |
| RefName: ${{ github.ref_name }} | |
| secrets: | |
| PfxBase64: ${{ secrets.NIGHTLY_TEST_BUILD_PFX }} | |
| PfxPassword: ${{ secrets.NIGHTLY_TEST_BUILD_PW }} | |
| TestParams: ${{ secrets.NIGHTLY_TEST_BUILD_PARAMS }} | |
| TestParamsDev: ${{ secrets.NIGHTLY_TEST_BUILD_PARAMS_DEV }} | |
| NotifierUsername: ${{ secrets.NOTIFIER_EMAIL_USERNAME }} | |
| NotifierPassword: ${{ secrets.NOTIFIER_EMAIL_PASSWORD }} | |
| needs: | |
| - publish |