This pull request includes several significant updates to the Docker configuration, CI/CD workflows, and testing setup. The changes aim to enhance the development environment, streamline the CI/CD process, and improve test coverage and organization.
Docker and CI/CD Workflow Improvements:
Added a new GitHub Actions workflow for Docker CI/CD, including build, test, release, and publish stages (.github/workflows/docker.yml).
Updated docker-compose.yml to use environment variables for configuration and adjusted the handling of secrets and database settings. [1][2][3]
Testing Enhancements:
Added a new phpunit.xml.dist configuration file to define the test suite structure (phpunit.xml.dist).
Created a new DatabaseTest.php file with multiple tests for database connection and query execution (tests/DatabaseTest.php).
Updated the Dockerfile to include test-related files and enable running tests during the build process (Dockerfile).
Configuration and Miscellaneous Changes:
Modified .editorconfig to standardize the indentation size for docker-compose.yml.
Added a changelog configuration to categorize changes in the release notes (.github/release.yml).
Updated Database.php to allow reading the database password from an environment variable (src/app/Core/Database.php).
This pull request includes several significant updates to the Docker configuration, CI/CD workflows, and testing setup. The changes aim to enhance the development environment, streamline the CI/CD process, and improve test coverage and organization.
Docker and CI/CD Workflow Improvements:
.github/workflows/docker.yml
).docker-compose.yml
to use environment variables for configuration and adjusted the handling of secrets and database settings. [1] [2] [3]Testing Enhancements:
phpunit.xml.dist
configuration file to define the test suite structure (phpunit.xml.dist
).DatabaseTest.php
file with multiple tests for database connection and query execution (tests/DatabaseTest.php
).Dockerfile
to include test-related files and enable running tests during the build process (Dockerfile
).Configuration and Miscellaneous Changes:
.editorconfig
to standardize the indentation size fordocker-compose.yml
..github/release.yml
).Database.php
to allow reading the database password from an environment variable (src/app/Core/Database.php
).Links used to reference: