Skip to content

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.

You want to Do this
Run Nod'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
  1. Push your branch, then start CI on it.

    Terminal
    gh workflow run ci.yml --ref <your-branch>
  2. 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 1
    gh run watch <run-id>
  3. If a Windows job fails, read the failed workflow step, then download the job's artifacts.

    Terminal
    gh run view <run-id> --log-failed
    gh run download <run-id> -n windows-startup -D /tmp/windows-startup
    gh 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-startup holds windows-startup.log, Nod's startup log from the runner, and windows-startup.json, a record of each launch. windows-setup-reports holds test results and update screenshots.
  • Starting another run on the same branch cancels the first.
  • Both jobs also run on main every night at 03:17 UTC.
  • The run page on GitHub shows logs live. gh run view --log waits until the run ends. A job that reaches its time limit may save no artifacts.

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.

  1. Create a branch, such as probe/windows-startup. Start from main to test the released app, or from your feature branch to build your change.

  2. 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 Windows
    on:
    push:
    branches: [probe/windows-startup]
    permissions:
    contents: read
    jobs:
    probe:
    runs-on: windows-2025
    timeout-minutes: 30
    steps:
    - name: Install the latest release and open it
    shell: pwsh
    env:
    GH_TOKEN: ${{ github.token }}
    run: |
    gh release download --repo $env:GITHUB_REPOSITORY --dir release `
    --pattern nod-Setup-x64.exe --pattern nod-Runtime-win32-x64.tar.gz
    Start-Process release\nod-Setup-x64.exe -ArgumentList '/S' -Wait
    Start-Process "$env:LOCALAPPDATA\Programs\nod\nod.exe"
    Start-Sleep -Seconds 600
    - name: Show the startup log
    if: always()
    shell: pwsh
    run: Get-Content "$env:APPDATA\nod\profiles\local\logs\startup.log" -Tail 200

    To install an older version, put its tag after download, such as gh release download nod-v0.10.2.

  3. 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.

  4. Delete the branch when you're done.

    Terminal
    git push origin --delete probe/windows-startup

To open Nod a second time in the same job, first set onboardingPreferenceStep to complete in %APPDATA%\nod\profiles\local\settings.json. Otherwise Nod waits on the welcome screen.

  1. Create the probe branch from your feature branch.

  2. Copy the Windows first setup, update and next start job from ci.yml into your probe workflow. Delete its needs and if lines. Keep its env block and its workflow steps through Package the Windows installer.

  3. Install from the build output instead of downloading a release.

    Terminal window
    Start-Process dist\windows\nod-Setup-x64.exe -ArgumentList '/S' -Wait

The build takes about six minutes. It puts nod-Setup-x64.exe and nod-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 Nod, 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 Nod 0.10.3 and earlier, this reproduces NOD_DATABASE_SETUP_FAILED.
Do not disturb is on Notifications don't show as banners. Turn it off before Nod's first notification.
The computer never sleeps You can't test sleep on a runner. Ask someone with a Windows laptop.
  • 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 nod.exe with spawn(path, [], { detached: true, stdio: 'ignore' }), then call unref(). The script then doesn't wait for Nod 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.