mirror of
https://github.com/actions/runner-images.git
synced 2025-12-12 20:26:49 +00:00
[macOS] Stop versioned postgresql service instead of the general one (#6166)
* Stop versioned postgresql service instead of the general one * Start versioned postgres service
This commit is contained in:
@@ -8,7 +8,8 @@ toolsetVersion=$(get_toolset_value '.postgresql.version')
|
|||||||
brew_smart_install postgresql@$toolsetVersion
|
brew_smart_install postgresql@$toolsetVersion
|
||||||
|
|
||||||
# Service PostgreSQL should be started before use
|
# Service PostgreSQL should be started before use
|
||||||
brew services start postgresql
|
postgreService=$(brew services list | grep -oe "postgresql\S*")
|
||||||
|
brew services start $postgreService
|
||||||
|
|
||||||
# Verify PostgreSQL is ready for accept incoming connections
|
# Verify PostgreSQL is ready for accept incoming connections
|
||||||
echo "Check PostgreSQL service is running"
|
echo "Check PostgreSQL service is running"
|
||||||
@@ -27,6 +28,6 @@ while [ $i -gt 0 ]; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Stop PostgreSQL
|
# Stop PostgreSQL
|
||||||
brew services stop postgresql
|
brew services stop $postgreService
|
||||||
|
|
||||||
invoke_tests "Databases" "PostgreSQL"
|
invoke_tests "Databases" "PostgreSQL"
|
||||||
|
|||||||
Reference in New Issue
Block a user