-
Notifications
You must be signed in to change notification settings - Fork 165
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
4a8888a
commit 50870de
Showing
17 changed files
with
275 additions
and
152 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
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 was deleted.
Oops, something went wrong.
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,58 @@ | ||
#@ load("@ytt:template", "template") | ||
#@ load("common.lib.yml", "checkoutCode", "setupDotnet") | ||
#@ load("test.lib.yml", "fetchPackageArtifacts", "baasTestArgs", "publishTestsResults", "testDefinition", "buildTests", "dotnetBuildTests") | ||
|
||
#@ def importPfx(id): | ||
name: Import test certificate | ||
id: #@ id | ||
#@yaml/text-templated-strings | ||
run: | | ||
$cert = New-SelfSignedCertificate -Type Custom -Subject "CN=RealmTests" -KeyUsage DigitalSignature -CertStoreLocation "Cert:\CurrentUser\My" -TextExtension @("2.5.29.37={text}1.3.6.1.5.5.7.3.3", "2.5.29.19={text}") | ||
echo "::set-output name=thumbprint::$($cert.Thumbprint)" | ||
shell: powershell | ||
#@ end | ||
|
||
--- | ||
name: test-windows | ||
_: #@ template.replace(testDefinition()) | ||
jobs: | ||
test-uwp: | ||
runs-on: windows-2019 | ||
name: UWP | ||
timeout-minutes: 45 | ||
steps: | ||
- #@ template.replace(checkoutCode()) | ||
- #@ template.replace(fetchPackageArtifacts()) | ||
- #@ importPfx("import-pfx") | ||
- #@ template.replace(buildTests("Tests/Tests.UWP", AppxBundle="Always", PackageCertificateThumbprint="${{ steps.import-pfx.outputs.thumbprint }}", UseDotNetNativeToolchain="false", AppxBundlePlatforms="x64")) | ||
- name: Run the tests | ||
run: #@ "./Tests/Tests.UWP/RunTests.ps1 -ExtraAppArgs '" + baasTestArgs("uwp-managed") + "'" | ||
shell: powershell | ||
- #@ publishTestsResults("${{ env.TEST_RESULTS }}", "UWP Managed") | ||
test-maui: | ||
runs-on: windows-2019 | ||
name: Maui.Windows | ||
timeout-minutes: 45 | ||
steps: | ||
- #@ template.replace(checkoutCode()) | ||
- #@ template.replace(fetchPackageArtifacts()) | ||
- #@ setupDotnet() | ||
- run: dotnet workload install maui | ||
- #@ importPfx("import-pfx") | ||
- #@ template.replace(dotnetBuildTests("Tests/Tests.Maui", "net6.0-windows10.0.19041", "win10-x64", GenerateAppxPackageOnBuild="true", PackageCertificateThumbprint="${{ steps.import-pfx.outputs.thumbprint }}", AppxPackageTestDir="Output/")) | ||
- name: Run the tests | ||
#@yaml/text-templated-strings | ||
run: | | ||
.\Tests\Tests.Maui\Output\Install.ps1 -Force | ||
# Tests.Maui --headless --labels=After --result=TestResults.Windows.xml (@= baasTestArgs('Maui.Windows') @) | ||
$package = Get-AppxPackage -Name realm.maui.tests | ||
Start-Process "shell:AppsFolder\$($package.PackageFamilyName)!App" -ArgumentList "--headless --labels=After --result=$(pwd)\TestResults.Windows.xml --output=$(pwd)\test.log (@= baasTestArgs('Maui.Windows') @)" | ||
Start-Sleep 5 | ||
echo "Waiting for tests to finish" | ||
$(Get-Process Tests.Maui).WaitForExit(90000) | ||
Get-Content args.txt | ||
Get-Content test.log | ||
shell: powershell | ||
- #@ publishTestsResults("TestResults.Windows.xml", "Maui.Windows") | ||
|
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
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
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.