Skip to content

Commit

Permalink
MNT Output more info for debugging failures
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Feb 21, 2024
1 parent 792671b commit 98bebe3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ jobs:
fi
echo "PHP has been configured"
echo "PHP info:"
php -i
- name: Install additional requirements
env:
Expand Down Expand Up @@ -679,6 +681,8 @@ jobs:
# Note: the wonky indentation is intentional so there is no space at the start of
# each newline in the .env file
if [[ "${{ matrix.db }}" =~ mysql ]]; then
echo "mysql version":
mysql --version
if [[ "${{ matrix.db }}" == "mysql57pdo" ]]; then
cat << EOF > .env
SS_DATABASE_CLASS="MySQLPDODatabase"
Expand All @@ -696,6 +700,8 @@ jobs:
SS_DATABASE_PASSWORD="root"
EOF
elif [[ "${{ matrix.db }}" =~ pgsql ]]; then
echo "postgres version:"
psql --version
cat << EOF > .env
SS_DATABASE_CLASS="PostgreSQLDatabase"
SS_DATABASE_SERVER="localhost"
Expand All @@ -704,13 +710,17 @@ jobs:
SS_DATABASE_PASSWORD="postgres"
EOF
elif [[ "${{ matrix.db }}" =~ sqlite3 ]]; then
echo "sqlite version":
sqlite3 --version
cat << EOF > .env
SS_DATABASE_CLASS="SQLite3Database"
SS_DATABASE_USERNAME="root"
SS_DATABASE_PASSWORD=""
SS_SQLITE_DATABASE_PATH=":memory:"
EOF
elif [[ "${{ matrix.db }}" =~ mariadb ]]; then
echo "mariadb version":
mysql --version
cat << EOF > .env
SS_DATABASE_SERVER="127.0.0.1"
SS_DATABASE_PORT="3311"
Expand Down

0 comments on commit 98bebe3

Please sign in to comment.