This pull request introduces several changes to automate the Docker image creation and testing process, improve the test setup, and update some PHP files. Below are the most important changes:
Docker Workflow Automation:
Added a GitHub Actions workflow to create and publish a Docker image on push events and release tags. This includes building and testing the Docker image and pushing the final image for release tags. (.github/workflows/docker.yml)
Dockerfile Enhancements:
Updated the Dockerfile to include the test directory and configuration file, and to run tests during the build process. (Dockerfile)
Test Configuration:
Added a PHPUnit configuration file to define the test suite and bootstrap file. (phpunit.xml.dist)
PHP Code Updates:
Simplified the autoloading in index.php by using require instead of require_once. (src/public/index.php)
New Database Tests:
Introduced a new DatabaseTest class with tests for database connection and query execution, marked to be skipped in CI environments. (tests/DatabaseTest.php)
This pull request introduces several changes to automate the Docker image creation and testing process, improve the test setup, and update some PHP files. Below are the most important changes:
Docker Workflow Automation:
.github/workflows/docker.yml
)Dockerfile Enhancements:
Dockerfile
to include the test directory and configuration file, and to run tests during the build process. (Dockerfile
)Test Configuration:
phpunit.xml.dist
)PHP Code Updates:
index.php
by usingrequire
instead ofrequire_once
. (src/public/index.php
)New Database Tests:
DatabaseTest
class with tests for database connection and query execution, marked to be skipped in CI environments. (tests/DatabaseTest.php
)Links used to reference: