Skip to content

Commit

Permalink
WF
Browse files Browse the repository at this point in the history
  • Loading branch information
overclokk committed May 30, 2024
1 parent 1c3e1df commit 2ff8d5a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion codeception.dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ extensions:
- Codeception\Command\GenerateWPCanonical
- Codeception\Command\GenerateWPXMLRPC
params:
- .docker/.env
- tests/.env
coverage:
enabled: true
include:
Expand Down
12 changes: 12 additions & 0 deletions tests/.env
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 2ff8d5a

Please sign in to comment.