mirror of
https://github.com/actions/runner-images.git
synced 2025-12-11 11:37:00 +00:00
19 lines
586 B
Bash
19 lines
586 B
Bash
#!/bin/bash -e -o pipefail
|
|
source ~/utils/utils.sh
|
|
|
|
# MongoDB object-value database
|
|
# Install latest release version of MongoDB Community Edition
|
|
# https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x
|
|
toolsetVersion=$(get_toolset_value '.mongodb.version')
|
|
|
|
brew tap mongodb/brew
|
|
versionToInstall=$(brew search --formulae /mongodb-community@$toolsetVersion/ | awk -F'/' '{print $3}' | tail -1)
|
|
echo "Installing mongodb $versionToInstall"
|
|
brew_smart_install "$versionToInstall"
|
|
|
|
if ! which mongo ; then
|
|
brew link "$versionToInstall"
|
|
fi
|
|
|
|
invoke_tests "Databases" "MongoDB"
|