Skip to content

Commit

Permalink
Try this
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Apr 24, 2024
1 parent 86db513 commit 8342b64
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,15 @@ jobs:
run: |
Set-Service mongodb -StartupType Automatic
Do {
try {
Write-Host "Trying to start MongoDB..."
Start-Service MongoDB
Start-Sleep -Seconds 10
$Service = Get-Service MongoDB
}
catch {
"Failure occurred in Start-Service MongoDB."
}
Start-Sleep -Seconds 5
$Service = Get-Service MongoDB
} Until ($Service.Status -eq "Running")
- uses: r-lib/actions/setup-r@v2
Expand Down

0 comments on commit 8342b64

Please sign in to comment.