diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index f6f3053822..82316a7125 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -27,7 +27,7 @@ jobs: id: managed_build shell: powershell run: | - .\build.ps1 -Configuration Debug -Platform x64 -BuildTests + .\build.ps1 -Configuration Debug -BuildTests if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } - name: Run managed tests diff --git a/.github/workflows/base-installer-cd.yml b/.github/workflows/base-installer-cd.yml index 3e9a27e566..96a0e280a7 100644 --- a/.github/workflows/base-installer-cd.yml +++ b/.github/workflows/base-installer-cd.yml @@ -152,12 +152,17 @@ jobs: echo "C:\Program Files (x86)\WiX Toolset v3.11\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append if: github.event_name != 'pull_request' - - name: Build and run tests + - name: Build id: build_installer shell: powershell run: | - .\build.ps1 -BuildInstaller -Configuration Release -Verbosity detailed -RunTests -TestFilter 'TestCategory!=ByHand&TestCategory!=SmokeTest&TestCategory!=DesktopRequired' ` - -MsBuildArgs @("/bl") | Tee-Object -FilePath build.log + .\build.ps1 -BuildInstaller -Configuration Release -Verbosity detailed -BuildTests -MsBuildArgs @("/bl") | Tee-Object -FilePath build.log + + - name: Run tests + id: run_tests + shell: powershell + run: | + .\test.ps1 -Configuration Release -NoBuild -TestFilter 'TestCategory!=DesktopRequired' | Tee-Object -FilePath build.log -Append - name: Scan Build Output shell: powershell diff --git a/.github/workflows/patch-installer-cd.yml b/.github/workflows/patch-installer-cd.yml index 8d59bb48b2..e6e6ff844c 100644 --- a/.github/workflows/patch-installer-cd.yml +++ b/.github/workflows/patch-installer-cd.yml @@ -220,13 +220,18 @@ jobs: New-ItemProperty -Path $path -Name $valueName -Value $expectedValue -Type String -Force } - - name: Build and Run Tests + - name: Build id: build_installer shell: powershell run: | Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\.NETFramework\AppContext" - .\build.ps1 -BuildPatch -Configuration Release -Verbosity detailed -RunTests -TestFilter 'TestCategory!=ByHand&TestCategory!=SmokeTest&TestCategory!=DesktopRequired' ` - -MsBuildArgs @("/bl") | Tee-Object -FilePath build.log + .\build.ps1 -BuildPatch -Configuration Release -Verbosity detailed -BuildTests -MsBuildArgs @("/bl") | Tee-Object -FilePath build.log + + - name: Run tests + id: run_tests + shell: powershell + run: | + .\test.ps1 -Configuration Release -NoBuild -TestFilter 'TestCategory!=DesktopRequired' | Tee-Object -FilePath build.log -Append - name: Scan Build Output shell: powershell