From 351a23a59d12b6b9c3d152496b5ff6096e9c5a28 Mon Sep 17 00:00:00 2001 From: creme332 <65414576+creme332@users.noreply.github.com> Date: Thu, 18 Apr 2024 15:38:43 +0400 Subject: [PATCH] output database tables and .env file --- .github/workflows/test.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b4ecf2d..d439a56 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,6 +26,7 @@ jobs: sudo /etc/init.d/mysql start mysql -e "CREATE DATABASE IF NOT EXISTS $TEST_DB_NAME;" -u$DB_USER -p$DB_PASSWORD mysql -D$TEST_DB_NAME -u$DB_USER -p$DB_PASSWORD -hlocalhost -P3306 < "resources/database/dump/cafe.sql" + mysql -e "USE cafe_test; SHOW TABLES;" -u$DB_USER -p$DB_PASSWORD - name: Create .env file env: @@ -37,7 +38,9 @@ jobs: TEST_DB_NAME="cafe_test" BUSINESS_GMAIL="" BUSINESS_GMAIL_PASSWORD="" - run: echo "$ENV" > src/core/.env + run: | + echo "$ENV" > src/core/.env + cat src/core/.env - name: Validate composer.json and composer.lock run: composer validate --strict