Skip to content

Commit

Permalink
full build
Browse files Browse the repository at this point in the history
  • Loading branch information
james-garriss committed Mar 1, 2024
1 parent b746892 commit 3010d77
Showing 1 changed file with 41 additions and 1 deletion.
42 changes: 41 additions & 1 deletion .github/workflows/run_functional_product_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,44 @@ jobs:
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Create PFX
run: |
New-Item -ItemType file -Path ./key.txt
Set-Content -Path ./key.txt -Value $env:PfxBase64
certutil -decode ./key.txt ./key.pfx
env:
PfxBase64: ${{ secrets.NIGHTLY_TEST_BUILD_PFX }}
- name: Import PFX
# Pipe to Out-Null to hide the thumbprint
run: Import-PfxCertificate -Password (ConvertTo-SecureString -String $env:PfxPassword -AsPlainText -Force) -CertStoreLocation Cert:\CurrentUser\My -FilePath ./key.pfx | Out-Null
env:
PfxPassword: ${{ secrets.NIGHTLY_TEST_BUILD_PW }}
- name: Get Thumbprint
id: getthumbprint
run: |
$x509 = Get-PfxCertificate -FilePath ./key.pfx -Password (ConvertTo-SecureString -String $env:PfxPassword -AsPlainText -Force)
$Thumbprint = $x509.ThumbPrint
# Pass thumbprint to later job.
echo THUMBPRINT=$Thumbprint >> $env:GITHUB_OUTPUT
shell: pwsh # -Password flag requires PS 6+
env:
PfxPassword: ${{ secrets.NIGHTLY_TEST_BUILD_PW }}
# Selenium is an interface that allows for

Check failure on line 107 in .github/workflows/run_functional_product_tests.yaml

View workflow job for this annotation

GitHub Actions / MegaLint YAML Check

107:49 [trailing-spaces] trailing spaces
# the programmatic control of web browsers
- name: Install Selenium & Update Webdriver
run: |
Install-Module -Name Selenium -Scope CurrentUser -Force
Import-Module -Name Selenium
./Testing/Functional/SmokeTest/UpdateSelenium.ps1
Import-Module -Name .\PowerShell\ScubaGear\ScubaGear.psd1
Install-OPA
# Workaround for Selenium. Loading psm1 instead of psd1
Import-Module -Name (Get-Module -Name Selenium -ListAvailable).Path -Force
- name: Test Product
id: test-product
run: |
# Read thumbprint from previous step.
$thumbprint = "${{ steps.get-thumbprint.outputs.thumbprint }}"
echo "Product is: ${{ matrix.product }}"
$params = $env:TestParams
# Split into products
Expand Down Expand Up @@ -134,7 +169,12 @@ jobs:
if($alias -eq "${{ matrix.product }}")
{
echo "Testing the following product..."
echo "Alias is: $alias"
$paramsAsHashTable.Add($domain)
$paramsAsHashTable.Add($display)
$paramsAsHashTable.Add($appid)
$paramsAsHashTable.Add($productname)
$paramsAsHashTable.Add($m365)
./Testing/Functional/Products/Tests/CallProductTests.ps1 -params $paramsAsHashTable -thumbprint $thumbprint
}
}
env:
Expand Down

0 comments on commit 3010d77

Please sign in to comment.