-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2e2f9f6
commit 4b21542
Showing
5 changed files
with
229 additions
and
73 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
# Run functional tests for Exchange | ||
|
||
name: Function Test Exchange | ||
|
||
# This is a reusable workflow called by the pipeline. | ||
on: | ||
workflow_call: | ||
inputs: | ||
EmailOnFailure: | ||
description: "The email address to send if workflow fails." | ||
required: true | ||
type: string | ||
secrets: | ||
PfxBase64: | ||
required: true | ||
PfxPassword: | ||
required: true | ||
TestParams: | ||
required: true | ||
TestParamsDev: | ||
required: true | ||
NotifierUsername: | ||
required: true | ||
NotifierPassword: | ||
required: true | ||
workflow_dispatch: | ||
|
||
permissions: | ||
id-token: write | ||
contents: write | ||
|
||
jobs: | ||
Exc_Tenant1: | ||
name: ${{ github.job }} | ||
runs-on: windows-latest | ||
environment: Development | ||
permissions: | ||
id-token: write | ||
contents: write | ||
concurrency: | ||
group: Exchange_Tenant1 | ||
cancel-in-progress: false | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
with: | ||
path: repo | ||
- name: Import PFX | ||
uses: ./repo/.github/actions/import-pfx | ||
with: | ||
PfxBase64: ${{ secrets.PfxBase64 }} | ||
PfxPassword: ${{ secrets.PfxPassword }} | ||
- name: Get Thumbprint | ||
id: get-thumbprint | ||
uses: ./repo/.github/actions/get-thumbprint | ||
with: | ||
PfxPassword: ${{ secrets.PfxPassword }} | ||
- name: Restore ScubaGear | ||
uses: actions/cache/restore@v4 | ||
with: | ||
path: C:\Program Files\WindowsPowerShell\Modules\ScubaGear | ||
key: scubagear-directory- | ||
- name: Restore Dependencies | ||
uses: actions/cache/restore@v4 | ||
with: | ||
path: C:\Users\runneradmin\Documents\WindowsPowerShell\Modules | ||
key: powershell-directory- | ||
- name: Restore OPA | ||
uses: actions/cache/restore@v4 | ||
with: | ||
path: C:\Users\runneradmin\.scubagear\Tools | ||
key: opa-directory- | ||
- name: Test | ||
id: test-product | ||
uses: ./repo/.github/actions/test-product | ||
with: | ||
Thumbprint: ${{ steps.get-thumbprint.outputs.thumbprint }} | ||
Alias: ${{ github.job }} | ||
TestParams: ${{ secrets.TestParamsDev }} | ||
- name: Extract Email | ||
# if: ${{ failure() && (inputs.EmailOnFailure || github.event.schedule || github.event_name == 'push') }} | ||
uses: ./repo/.github/actions/extract-email | ||
env: | ||
Alias: ${{ github.job }} | ||
TestParams: ${{ secrets.TestParamsDev }} | ||
- name: Notify on Failure | ||
if: ${{ failure() && (inputs.EmailOnFailure || github.event.schedule || github.event_name == 'push') }} | ||
uses: dawidd6/action-send-mail@v3 | ||
with: | ||
server_address: smtp.gmail.com | ||
server_port: 465 | ||
username: ${{ secrets.NotifierUsername }} | ||
password: ${{ secrets.NotifierPassword }} | ||
subject: Nightly functional test failure | ||
body: The ${{ github.job }} test failed. Please look at the "Nightly Product Functional Tests" workflow for more details. | ||
# to: ${{ steps.test-product.outputs.emails }} | ||
to: [email protected] | ||
from: ScubaGear Notifier |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
# Run functional tests for Power Platform | ||
|
||
name: Function Test Power Platform | ||
|
||
# This is a reusable workflow called by the pipeline. | ||
on: | ||
workflow_call: | ||
inputs: | ||
EmailOnFailure: | ||
description: "The email address to send if workflow fails." | ||
required: true | ||
type: string | ||
secrets: | ||
PfxBase64: | ||
required: true | ||
PfxPassword: | ||
required: true | ||
TestParams: | ||
required: true | ||
TestParamsDev: | ||
required: true | ||
NotifierUsername: | ||
required: true | ||
NotifierPassword: | ||
required: true | ||
workflow_dispatch: | ||
|
||
permissions: | ||
id-token: write | ||
contents: write | ||
|
||
jobs: | ||
Pwr_Tenant1: | ||
name: ${{ github.job }} | ||
runs-on: windows-latest | ||
environment: Development | ||
permissions: | ||
id-token: write | ||
contents: write | ||
concurrency: | ||
group: Power_Tenant1 | ||
cancel-in-progress: false | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
with: | ||
path: repo | ||
- name: Import PFX | ||
uses: ./repo/.github/actions/import-pfx | ||
with: | ||
PfxBase64: ${{ secrets.PfxBase64 }} | ||
PfxPassword: ${{ secrets.PfxPassword }} | ||
- name: Get Thumbprint | ||
id: get-thumbprint | ||
uses: ./repo/.github/actions/get-thumbprint | ||
with: | ||
PfxPassword: ${{ secrets.PfxPassword }} | ||
- name: Restore ScubaGear | ||
uses: actions/cache/restore@v4 | ||
with: | ||
path: C:\Program Files\WindowsPowerShell\Modules\ScubaGear | ||
key: scubagear-directory- | ||
- name: Restore Dependencies | ||
uses: actions/cache/restore@v4 | ||
with: | ||
path: C:\Users\runneradmin\Documents\WindowsPowerShell\Modules | ||
key: powershell-directory- | ||
- name: Restore OPA | ||
uses: actions/cache/restore@v4 | ||
with: | ||
path: C:\Users\runneradmin\.scubagear\Tools | ||
key: opa-directory- | ||
- name: Test | ||
id: test-product | ||
uses: ./repo/.github/actions/test-product | ||
with: | ||
Thumbprint: ${{ steps.get-thumbprint.outputs.thumbprint }} | ||
Alias: ${{ github.job }} | ||
TestParams: ${{ secrets.TestParamsDev }} | ||
- name: Extract Email | ||
# if: ${{ failure() && (inputs.email-on-failure || github.event.schedule || github.event_name == 'push') }} | ||
uses: ./repo/.github/actions/extract-email | ||
env: | ||
Alias: ${{ github.job }} | ||
TestParams: ${{ secrets.TestParamsDev }} | ||
- name: Notify on Failure | ||
# if: ${{ failure() && (inputs.email-on-failure || github.event.schedule || github.event_name == 'push') }} | ||
if: ${{ success() }} | ||
uses: dawidd6/action-send-mail@v3 | ||
with: | ||
server_address: smtp.gmail.com | ||
server_port: 465 | ||
username: ${{ secrets.NotifierUsername }} | ||
password: ${{ secrets.NotifierPassword }} | ||
subject: Nightly functional test failure | ||
body: The ${{ github.job }} test failed. Please look at the "Nightly Product Functional Tests" workflow for more details. | ||
# to: ${{ steps.test-product.outputs.emails }} | ||
to: [email protected] | ||
from: ScubaGear Notifier |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,70 +96,3 @@ jobs: | |
# to: ${{ steps.test-product.outputs.emails }} | ||
to: [email protected] | ||
from: ScubaGear Notifier | ||
Tms_Tenant2: | ||
name: ${{ github.job }} | ||
runs-on: windows-latest | ||
environment: Development | ||
permissions: | ||
id-token: write | ||
contents: write | ||
concurrency: | ||
group: Tms_Tenant2 | ||
cancel-in-progress: false | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
with: | ||
path: repo | ||
- name: Import PFX | ||
uses: ./repo/.github/actions/import-pfx | ||
with: | ||
PfxBase64: ${{ secrets.PfxBase64 }} | ||
PfxPassword: ${{ secrets.PfxPassword }} | ||
- name: Get Thumbprint | ||
id: get-thumbprint | ||
uses: ./repo/.github/actions/get-thumbprint | ||
with: | ||
PfxPassword: ${{ secrets.PfxPassword }} | ||
- name: Restore ScubaGear | ||
uses: actions/cache/restore@v4 | ||
with: | ||
path: C:\Program Files\WindowsPowerShell\Modules\ScubaGear | ||
key: scubagear-directory- | ||
- name: Restore Dependencies | ||
uses: actions/cache/restore@v4 | ||
with: | ||
path: C:\Users\runneradmin\Documents\WindowsPowerShell\Modules | ||
key: powershell-directory- | ||
- name: Restore OPA | ||
uses: actions/cache/restore@v4 | ||
with: | ||
path: C:\Users\runneradmin\.scubagear\Tools | ||
key: opa-directory- | ||
- name: Test | ||
id: test-product | ||
uses: ./repo/.github/actions/test-product | ||
with: | ||
Thumbprint: ${{ steps.get-thumbprint.outputs.thumbprint }} | ||
Alias: ${{ github.job }} | ||
TestParams: ${{ secrets.TestParamsDev }} | ||
- name: Extract Email | ||
# if: ${{ failure() && (inputs.EmailOnFailure || github.event.schedule || github.event_name == 'push') }} | ||
uses: ./repo/.github/actions/extract-email | ||
env: | ||
Alias: ${{ github.job }} | ||
TestParams: ${{ secrets.TestParamsDev }} | ||
- name: Notify on Failure | ||
# if: ${{ failure() && (inputs.EmailOnFailure || github.event.schedule || github.event_name == 'push') }} | ||
if: ${{ success() }} | ||
uses: dawidd6/action-send-mail@v3 | ||
with: | ||
server_address: smtp.gmail.com | ||
server_port: 465 | ||
username: ${{ secrets.NotifierUsername }} | ||
password: ${{ secrets.NotifierPassword }} | ||
subject: Nightly functional test failure | ||
body: The ${{ github.job }} test failed. Please look at the "Nightly Product Functional Tests" workflow for more details. | ||
# to: ${{ steps.test-product.outputs.emails }} | ||
to: [email protected] | ||
from: ScubaGear Notifier |
This file contains 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