Add schema bootstrap for API tests and update GitHub Actions environment setup
- Introduced `ApiSchemaBootstrap` class to ensure database schema for API tests. - Modified GitHub Actions workflow to include schema bootstrapping configuration. - Switched to Xdebug for test coverage in workflows and adjusted `ini-values` accordingly. - Improved environment variable handling in `config.php` for enhanced runtime flexibility.
This commit is contained in:
@@ -17,9 +17,9 @@ jobs:
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: '8.2'
|
||||
extensions: mysqli, curl, openssl, json, redis, pcov
|
||||
coverage: pcov
|
||||
ini-values: pcov.enabled=1
|
||||
extensions: mysqli, curl, openssl, json, redis, xdebug
|
||||
coverage: xdebug
|
||||
ini-values: variables_order=EGPCS,xdebug.mode=coverage
|
||||
|
||||
- name: Resolve dependencies
|
||||
working-directory: services/nginx/app
|
||||
@@ -72,6 +72,7 @@ jobs:
|
||||
with:
|
||||
php-version: '8.2'
|
||||
extensions: mysqli, curl, openssl, json, redis
|
||||
ini-values: variables_order=EGPCS
|
||||
|
||||
- name: Resolve dependencies
|
||||
working-directory: services/nginx/app
|
||||
@@ -139,6 +140,7 @@ jobs:
|
||||
with:
|
||||
php-version: '8.2'
|
||||
extensions: mysqli, curl, openssl, json, redis
|
||||
ini-values: variables_order=EGPCS
|
||||
|
||||
- name: Resolve dependencies
|
||||
working-directory: services/nginx/app
|
||||
@@ -148,6 +150,7 @@ jobs:
|
||||
working-directory: services/nginx/app
|
||||
env:
|
||||
RUN_API_TESTS: '1'
|
||||
API_TEST_BOOTSTRAP_SCHEMA: '1'
|
||||
USE_ENV: 'true'
|
||||
DEBUG: '0'
|
||||
ENCRYPTION_KEY: test-key
|
||||
|
||||
Reference in New Issue
Block a user