20 AI testers on 20 different phones, in parallel, on GitHub's free runners: Claude Code agents on iOS Simulators and Android emulators that find broken flows, translation, layout and accessibility bugs
Python accessibility-testingai-agentsai-testingandroidandroid-emulatorclaudeclaude-codee2e-testingexploratory-testingexpofluttergithub-actionsiosios-simulatorllmmobile-testingqareact-nativetest-automationui-testing
Windows: setup.ps1 and LF line endings for scripts
Pierre RAFFALLI842bc627a8bf
diff --git a/.gitattributes b/.gitattributesnew file mode 100644index 0000000..0aae168--- /dev/null+++ b/.gitattributes@@ -0,0 +1,4 @@+# Shell scripts must keep LF endings, even on Windows checkouts+*.sh text eol=lf+*.py text eol=lf+*.yml text eol=lfdiff --git a/README.md b/README.mdindex 392d565..1f454b6 100644--- a/README.md+++ b/README.md@@ -17,7 +17,7 @@ Kotlin and Swift, Kotlin Multiplatform, Capacitor and .NET MAUI.```bashgh repo create my-testers --public --template pierridotite/mobile-agent-testers --clone-cd my-testers && ./setup.sh # key pair + secrets + Claude token+cd my-testers && ./setup.sh # key pair + secrets + Claude token (Windows: .\setup.ps1)gh workflow run agent-testers.yml # demo: 2 Android + 2 iOS testers, ~30 minbash scripts/collect.sh <run id> # decrypts reports into runs/<id>/SUMMARY.md```diff --git a/setup.ps1 b/setup.ps1new file mode 100644index 0000000..d84b810--- /dev/null+++ b/setup.ps1@@ -0,0 +1,56 @@+# Windows version of setup.sh (PowerShell 5.1 or 7). Run it from the repo folder:+# powershell -ExecutionPolicy Bypass -File .\setup.ps1+# 1. creates the key pair that encrypts results (private half stays on this PC)+# 2. sets the ARTIFACT_PASSPHRASE secret+# 3. asks for your Claude token (subscription) or API key and stores it as a secret+# 4. commits and pushes the public key+$ErrorActionPreference = "Continue"+if (-not (Get-Command gh -ErrorAction SilentlyContinue)) { Write-Host "Install the GitHub CLI: winget install --id GitHub.cli"; exit 1 }+if (-not (Get-Command git -ErrorAction SilentlyContinue)) { Write-Host "Install Git: winget install --id Git.Git"; exit 1 }+gh auth status *> $null; if ($LASTEXITCODE -ne 0) { Write-Host "Run: gh auth login"; exit 1 }++# openssl ships with Git for Windows+$openssl = (Get-Command openssl -ErrorAction SilentlyContinue).Source+if (-not $openssl) {+ $gitDir = Split-Path (Split-Path (Get-Command git).Source)+ $openssl = @("$gitDir\usr\bin\openssl.exe", "$env:ProgramFiles\Git\usr\bin\openssl.exe") | Where-Object { Test-Path $_ } | Select-Object -First 1+}+if (-not $openssl) { Write-Host "openssl not found: install Git for Windows (winget install --id Git.Git)"; exit 1 }++$repo = gh repo view --json nameWithOwner -q .nameWithOwner+Write-Host "Setting up agent testers for $repo"+$keyDir = Join-Path $HOME ".mobile-agent-testers"+New-Item -ItemType Directory -Force -Path $keyDir | Out-Null+$priv = Join-Path $keyDir (($repo -replace "/", "_") + ".pem")+if (-not (Test-Path $priv)) {+ & $openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:4096 -out $priv+ Write-Host "Private key created: $priv (keep it safe, never commit it)"+}+& $openssl pkey -in $priv -pubout -out results_public.pem++$secrets = (gh secret list --json name -q ".[].name") -split "`n"+if ($secrets -notcontains "ARTIFACT_PASSPHRASE") {+ $bytes = New-Object byte[] 32; [Security.Cryptography.RandomNumberGenerator]::Create().GetBytes($bytes)+ gh secret set ARTIFACT_PASSPHRASE --body (($bytes | ForEach-Object { $_.ToString("x2") }) -join "")+ Write-Host "Secret ARTIFACT_PASSPHRASE set"+}+if (($secrets -notcontains "CLAUDE_CODE_OAUTH_TOKEN") -and ($secrets -notcontains "ANTHROPIC_API_KEY")) {+ Write-Host ""+ Write-Host "Claude access. Either:"+ Write-Host " 1) a Claude Pro/Max subscription: run 'claude setup-token' in another terminal and paste the token"+ Write-Host " 2) an Anthropic API key (pay per token)"+ $choice = Read-Host "Choose 1 or 2"+ $name = if ($choice -eq "2") { "ANTHROPIC_API_KEY" } else { "CLAUDE_CODE_OAUTH_TOKEN" }+ $secure = Read-Host "Paste it (hidden)" -AsSecureString+ $plain = [Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR($secure))+ gh secret set $name --body $plain.Trim()+ Remove-Variable plain+ Write-Host "Secret $name set"+}++git add results_public.pem+git diff --cached --quiet+if ($LASTEXITCODE -ne 0) { git commit -qm "Add results public key"; git push -q; Write-Host "Public key committed and pushed" }+Write-Host ""+Write-Host "Done. Run the demo (2 Android + 2 iOS testers on the demo app, about 30 min):"+Write-Host " gh workflow run agent-testers.yml"