name: probe-windows on: push jobs: windows: runs-on: windows-latest steps: # Plain git, no `uses:` — no node/action cache on the host needed. - name: Checkout shell: powershell run: | git init -q . git fetch -q --tags "$env:GITHUB_SERVER_URL/$env:GITHUB_REPOSITORY.git" "$env:GITHUB_SHA" if ($LASTEXITCODE) { exit 1 } git checkout -q --force FETCH_HEAD - name: Setup Flutter (stable, cached on the runner host) shell: powershell run: | $ErrorActionPreference = 'Stop' $F = "$env:ProgramData\flutter-ci" if (Test-Path "$F\.git") { git -C $F fetch --depth 1 origin stable; if ($LASTEXITCODE) { exit 1 } git -C $F reset --hard FETCH_HEAD; if ($LASTEXITCODE) { exit 1 } } else { git clone https://github.com/flutter/flutter.git -b stable --depth 1 $F; if ($LASTEXITCODE) { exit 1 } } Add-Content $env:GITHUB_PATH "$F\bin" & "$F\bin\flutter.bat" config --no-analytics --enable-windows-desktop | Out-Null & "$F\bin\flutter.bat" doctor -v - name: Updater tests shell: powershell working-directory: apps/desktop run: flutter test test/updater_test.dart -r expanded