From f1f9a2b62fa053f05075b666c19b1468c73e2934 Mon Sep 17 00:00:00 2001 From: Jordan Dominion Date: Sun, 25 Jun 2023 10:03:13 -0400 Subject: [PATCH] Test .msi installation in CI --- .github/workflows/ci-suite.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/ci-suite.yml b/.github/workflows/ci-suite.yml index 3067a6225c..5c9629cd51 100644 --- a/.github/workflows/ci-suite.yml +++ b/.github/workflows/ci-suite.yml @@ -959,6 +959,17 @@ jobs: shell: powershell run: build/package/winget/build_package.ps1 + - name: Test Installation # Sanity checks the .deps.json exists, which the installation is broken without + shell: powershell # If it's missing, I found that in elements were the problem + run: | + $file = "packaging/build/package/winget/Tgstation.Server.Host.Service.Msi/Release/tgstation-server.msi" + $log = "install.log" + $procMain = Start-Process "msiexec" "/i `"$file`" /qn /l*! `"$log`"" -NoNewWindow -PassThru + $procLog = Start-Process "powershell" "Get-Content -Path `"$log`" -Wait" -NoNewWindow -PassThru + $procMain.WaitForExit() + $procLog.Kill() + Get-Content C:/Program Files (x86)/tgstation/tgstation-server/lib/Default/Tgstation.Server.Host.deps.json + - name: Upload .msi uses: actions/upload-artifact@v3 with: