This commit is contained in:
Shish 2024-01-15 21:30:37 +00:00
parent ad42cf80f2
commit 7909e743fd

View file

@ -14,7 +14,7 @@ if [ "$DATABASE" = "pgsql" ]; then
sudo -u postgres psql -c "CREATE DATABASE shimmie WITH OWNER shimmie;" -U postgres sudo -u postgres psql -c "CREATE DATABASE shimmie WITH OWNER shimmie;" -U postgres
export TEST_DSN="pgsql:user=shimmie;password=shimmie;host=127.0.0.1;dbname=shimmie" export TEST_DSN="pgsql:user=shimmie;password=shimmie;host=127.0.0.1;dbname=shimmie"
fi fi
if [ "$DATABASE" == "mysql" ]; then if [ "$DATABASE" = "mysql" ]; then
sudo systemctl start mysql sudo systemctl start mysql
mysql --version mysql --version
mysql -e "SET GLOBAL general_log = 'ON';" -uroot -proot mysql -e "SET GLOBAL general_log = 'ON';" -uroot -proot
@ -28,6 +28,7 @@ if [ "$DATABASE" = "sqlite" ]; then
fi fi
if [ -n "$GITHUB_ENV" ]; then if [ -n "$GITHUB_ENV" ]; then
echo "Setting DSN for $DATABASE: $TEST_DSN"
echo "TEST_DSN=$TEST_DSN" >> $GITHUB_ENV echo "TEST_DSN=$TEST_DSN" >> $GITHUB_ENV
echo "INSTALL_DSN=$TEST_DSN" >> $GITHUB_ENV echo "INSTALL_DSN=$TEST_DSN" >> $GITHUB_ENV
fi fi