From 2ff8d5a27168ba62df6530cf4da6078c8b078d79 Mon Sep 17 00:00:00 2001 From: Enea Date: Thu, 30 May 2024 17:58:32 +0200 Subject: [PATCH] WF --- .github/workflows/test.yml | 5 ++++- codeception.dist.yml | 2 +- tests/.env | 12 ++++++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 tests/.env diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 091b2f09..c91c7db6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,7 +2,7 @@ name: CI env: PROJECT_KIND: plugins - DB_HOST: 127.0.0.1 + DB_HOST: localhost DB_NAME: test DB_USER: root DB_PASSWORD: root @@ -89,6 +89,9 @@ jobs: ls -la ${{env.APP_FOLDER_PATH}}/wp-content/${{env.PROJECT_KIND}}/${{ github.event.repository.name }} wp db export ${{env.APP_FOLDER_PATH}}/wp-content/${{env.PROJECT_KIND}}/${{ github.event.repository.name }}/tests/_data/dump.sql + - name: Verify MySQL is Running + run: sudo systemctl status mysql.service + - name: Build codeception working-directory: ${{env.APP_FOLDER_PATH}}/wp-content/${{env.PROJECT_KIND}}/${{ github.event.repository.name }} run: ./vendor/bin/codecept build diff --git a/codeception.dist.yml b/codeception.dist.yml index c72fb5cf..a3aa5ab9 100644 --- a/codeception.dist.yml +++ b/codeception.dist.yml @@ -17,7 +17,7 @@ extensions: - Codeception\Command\GenerateWPCanonical - Codeception\Command\GenerateWPXMLRPC params: - - .docker/.env + - tests/.env coverage: enabled: true include: diff --git a/tests/.env b/tests/.env new file mode 100644 index 00000000..78484b7c --- /dev/null +++ b/tests/.env @@ -0,0 +1,12 @@ +# Codeception configuration file +ROOT_FOLDER="../../../" + +DB_HOST="localhost" +DB_NAME="test" +DB_USER="root" +DB_PASSWORD="root" + +TABLE_PREFIX="wp_" + +DOMAIN="localhost" +ADMIN_EMAIL="admin@localhost.test" \ No newline at end of file