Skip to content

Commit

Permalink
Repeat until success
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Apr 24, 2024
1 parent f391347 commit 86db513
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,15 @@ jobs:
run: sudo systemctl restart mongod

- if: runner.os == 'windows'
continue-on-error: true
run: |
Set-Service mongodb -StartupType Automatic
Set-Service mongodb -StartupType Automatic
Set-Service mongodb -StartupType Automatic
Start-Service -Name MongoDB
Do {
Write-Host "Trying to start MongoDB..."
Start-Service MongoDB
Start-Sleep -Seconds 10
$Service = Get-Service MongoDB
} Until ($Service.Status -eq "Running")
- uses: r-lib/actions/setup-r@v2
with:
Expand Down

0 comments on commit 86db513

Please sign in to comment.