Test on Windows runners
GitHub's windows-2025 runners are Windows Server 2025 machines with WSL 2, so they can run the whole Windows app. Pull requests and the merge queue skip the Windows jobs to save runner time. Start them yourself when you change Windows code.
Choose how to test
Section titled “Choose how to test”| You want to | Do this |
|---|---|
| Run Utming's Windows checks on your branch | Run CI on your branch |
| See how the released app behaves in a case CI doesn't cover, such as a PC without the Visual C++ runtime | Try something on a probe branch |
| Try your branch's code in that kind of experiment | Build your branch on a runner |
Run CI on your branch
Section titled “Run CI on your branch”-
Push your branch, then start CI on it.
Terminal gh workflow run ci.yml --ref <your-branch> -
Wait a few seconds, then find the run and watch it.
Terminal gh run list --workflow ci.yml --branch <your-branch> --event workflow_dispatch --limit 1gh run watch <run-id> -
If a Windows job fails, read the failed workflow step, then download the job's artifacts.
Terminal gh run view <run-id> --log-failedgh run download <run-id> -n windows-startup -D /tmp/windows-startupgh run download <run-id> -n windows-setup-reports -D /tmp/windows-setup-reports
A manual run starts every check, including both Windows jobs and the Mac jobs. Both Windows jobs wait for Checks, tests and build, and GitHub skips them if it fails.
| Job | What it checks | Usual time |
|---|---|---|
| Windows setup and installer | Credential storage, the keep-awake request, the app sign-in bridge, local file rules, the database, the PowerShell installer, and updates that keep the profile | Five to seven minutes |
| Windows first setup, update and next start | Builds the installer from your branch and checks WSL recovery. Then it installs the latest release with Defender scanning on, updates it to your build, and starts it again | About 20 minutes, up to 30 |
windows-startupholdswindows-startup.log, Utming's startup log from the runner, andwindows-startup.json, a record of each launch.windows-setup-reportsholds test results and update screenshots.- Starting another run on the same branch cancels the first.
- Both jobs also run on
mainevery night at 03:17 UTC. - The run page on GitHub shows logs live.
gh run view --logwaits until the run ends. A job that reaches its time limit may save no artifacts.
Try something on a probe branch
Section titled “Try something on a probe branch”When CI doesn't answer your question, run your own workflow on a branch of its own. No other workflow runs on a push to a branch other than main, so the push starts only your probe. Don't open a pull request for it.
-
Create a branch, such as
probe/windows-startup. Start frommainto test the released app, or from your feature branch to build your change. -
Add a workflow that runs only on pushes to that branch. This one installs the latest release, opens it, and prints the startup log.
.github/workflows/probe-windows.yml name: Probe Windowson:push:branches: [probe/windows-startup]permissions:contents: readjobs:probe:runs-on: windows-2025timeout-minutes: 30steps:- name: Install the latest release and open itshell: pwshenv:GH_TOKEN: ${{ github.token }}run: |gh release download --repo $env:GITHUB_REPOSITORY --dir release `--pattern utming-Setup-x64.exe --pattern utming-Runtime-win32-x64.tar.gzStart-Process release\utming-Setup-x64.exe -ArgumentList '/S' -WaitStart-Process "$env:LOCALAPPDATA\Programs\utming\utming.exe"Start-Sleep -Seconds 600- name: Show the startup logif: always()shell: pwshrun: Get-Content "$env:APPDATA\utming\profiles\local\logs\startup.log" -Tail 200To install an older version, put its tag after
download, usinggh release download <existing-release-tag>. -
Push the branch. Watch the run on GitHub, change the workflow, and push again. A round takes about 12 minutes.
If Git refuses to push the workflow file, run
gh auth refresh -s workflow, then push again. -
Delete the branch when you're done.
Terminal git push origin --delete probe/windows-startup
To open Utming a second time in the same job, first set onboardingPreferenceStep to complete in %APPDATA%\utming\profiles\local\settings.json. Otherwise Utming waits on the welcome screen.
Build your branch on a runner
Section titled “Build your branch on a runner”-
Create the probe branch from your feature branch.
-
Copy the Windows first setup, update and next start job from
ci.ymlinto your probe workflow. Delete itsneedsandiflines. Keep itsenvblock and its workflow steps through Package the Windows installer. -
Install from the build output instead of downloading a release.
Terminal window Start-Process dist\windows\utming-Setup-x64.exe -ArgumentList '/S' -Wait
The build takes about six minutes. It puts utming-Setup-x64.exe and utming-Runtime-win32-x64.tar.gz in dist\windows. Its version is 999.0.0, so it can't download a runtime pack. The installer uses the runtime pack next to it instead.
Make the runner behave like a real computer
Section titled “Make the runner behave like a real computer”Runners run Windows Server 2025, not Windows 11, and differ from most PCs in these ways. Recreate the difference your change depends on.
| On the runner | To match a real computer |
|---|---|
| Every process runs elevated | Check out the repository. Run drop-admin-privileges.ps1 -ProcessId <pid> on the process that will start Utming, as check-windows.mjs does. Programs it starts afterwards lose the backup, restore, security, and take-ownership privileges. |
| Defender real-time scanning is off | Run Set-MpPreference -DisableRealtimeMonitoring $false, then remove each path in (Get-MpPreference).ExclusionPath. |
| The Visual C++ runtime is installed | Take ownership of vcruntime140.dll, vcruntime140_1.dll, and msvcp140.dll in C:\Windows\System32 with takeown /a and icacls, then rename them. On Utming 0.10.3 and earlier, this reproduces UTMING_DATABASE_SETUP_FAILED. |
| Do not disturb is on | Notifications don't show as banners. Turn it off before Utming's first notification. |
| The computer never sleeps | You can't test sleep on a runner. Ask someone with a Windows laptop. |
Save time on a runner
Section titled “Save time on a runner”- When a program might be missing a DLL, start it from Node, not PowerShell. PowerShell can wait forever on the missing-DLL dialog.
- From a Node script, open
utming.exewithspawn(path, [], { detached: true, stdio: 'ignore' }), then callunref(). The script then doesn't wait for Utming to quit. - In PowerShell strings, write
"${name}:"."$name:"is a parse error. - Many desktop tests mock macOS. On a Windows runner, run only the test name patterns that the Windows setup and installer job runs.