Closed guibranco closed 1 week ago
[!CAUTION]
Review failed
The pull request is closed.
This pull request introduces several modifications across multiple GitHub Actions workflow files, primarily adding a new step for running Docker containers and updating the required PHP extensions for PHPUnit tests. The changes include a shift from automatic triggers to manual execution for several workflows, the introduction of a new Database
class, and updates to documentation files to reflect these changes. Additionally, new test classes are added to ensure the functionality of the newly introduced classes, while existing tests are reorganized into a more structured namespace.
File | Change Summary |
---|---|
.github/workflows/build.yml |
Added step Docker compose up and updated php_extensions to include curl , pdo , pdo_mysql . |
.github/workflows/ci.yml |
Added step Docker compose up and updated phpunit step to include new PHP extensions. |
.github/workflows/codacy.yml |
Changed trigger to workflow_dispatch , added Docker compose up step, and updated php_extensions . |
.github/workflows/code-climate.yml |
Changed trigger to workflow_dispatch , added Docker compose up step, and updated php_extensions . |
.github/workflows/codecov.yml |
Changed trigger to workflow_dispatch , added Docker compose up step, and updated php_extensions . |
.github/workflows/deep-source.yml |
Changed trigger to workflow_dispatch , added Docker compose up step, and updated php_extensions . |
.github/workflows/sonar-cloud.yml |
Changed trigger to workflow_dispatch , added Docker compose up step, and updated php_extensions . |
.vscode/settings.json |
Updated cSpell.words to include Codacy , Codecov , and Packagist . |
README.md |
Updated logo and added a new section on testing with PHPUnit. |
docs/changelog.md |
Added entry for version 0.14 documenting the new Database class. |
docs/user-guide/basic-usage.md |
Updated to include usage of the new Database class. |
docs/user-guide/color.md |
Corrected typographical errors and reformatted sections. |
docs/user-guide/database.md |
New documentation for the Database class. |
docker-compose.yml |
Introduced a new file defining a MySQL service with health checks. |
src/Database/Database.php |
Added Database class for database operations using PDO. |
src/Database/DatabaseException.php |
Added custom DatabaseException class for handling database errors. |
src/Database/DatabaseOptions.php |
Added DatabaseOptions class for managing database connection options. |
src/Database/IDatabase.php |
Introduced IDatabase interface defining database operation methods. |
tests/Integration/DatabaseTest.php |
New test class for testing Database functionality. |
tests/Unit/DatabaseExceptionTest.php |
New test class for validating DatabaseException . |
tests/Unit/DatabaseOptionsTest.php |
New test class for verifying DatabaseOptions functionality. |
Various test files | Updated namespaces to categorize tests into Unit and Integration . |
size/L
, β»οΈ code quality
, π§βπ» tech-debit
, π medium effort
In the garden where the code does bloom,
New classes sprout, dispelling gloom.
With Docker's might, we build and test,
In every change, we strive for the best.
So hop along, letβs code with glee,
For every line, a victory! πβ¨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Here's the code health analysis summary for commits eb9073a..7ec1dfe
. View details on DeepSource β.
Analyzer | Status | Summary | Link |
---|---|---|---|
Test coverage | β Success | View Check β | |
SQL | β Success | View Check β | |
Secrets | β Success | View Check β | |
PHP | β Success | View Check β | |
Docker | β Success | View Check β |
Metric | Aggregate | Php |
---|---|---|
Branch Coverage | 100% | 100% |
Composite Coverage | 90.5% (down 0.3% from main ) | 90.5% (down 0.3% from main ) |
Line Coverage | 90.5% (down 0.3% from main ) | 90.5% (down 0.3% from main ) |
π‘ If youβre a repository administrator, you can configure the quality gates from the settings.
@gstraccini rerun failed workflows
Rerunning 7 failed workflows on the commit 75b5fc066e20c8b4613c79731b59545c9ba268c1
! :repeat:
Rerunning the following workflows:
Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.
π¦ GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
Coverage variation | Diff coverage |
---|---|
:white_check_mark: +90.53% (target: -1.00%) | :white_check_mark: 89.77% |
Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more
Infisical secrets check: β No secrets leaked!
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
91.3% Coverage on New Code
0.0% Duplication on New Code
Closes #
π Description
β Checks
β’οΈ Does this introduce a breaking change?
βΉ Additional Information
Summary by CodeRabbit
Release Notes
New Features
Database
class for managing database connections and operations.DatabaseOptions
class for configuring database connection settings.DatabaseException
for handling database-related errors.Documentation
Database
class and its usage.Tests
Database
class.DatabaseException
andDatabaseOptions
.Chores