From f70626516bb2f207e701d66d2fc8aa6c9f19d31c Mon Sep 17 00:00:00 2001 From: Sleon4 Date: Sat, 8 Feb 2025 14:59:22 -0500 Subject: [PATCH] ci: updated Github Actions settings --- .github/workflows/php.yml | 10 +++++----- .gitignore | 2 +- src/LionBundle/Commands/CommandHandler.php | 2 ++ src/LionBundle/Commands/Lion/DB/CrudCommand.php | 16 +++++++++++++--- 4 files changed, 21 insertions(+), 9 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 25647211..1aa5ad07 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -62,13 +62,13 @@ jobs: extensions: mbstring, gd, zip - name: Composer Install - run: composer install + run: composer install --dev - name: PHP CodeSnifer (Src) - run: php -d memory_limit=-1 vendor/bin/phpcs --standard=PSR12 src/ + run: php -d memory_limit=-1 vendor/bin/phpcs --standard=PSR12 src - # - name: PHPStan (Src) - # run: php -d memory_limit=-1 vendor/bin/phpstan analyse --level max src + - name: PHPStan (Src) + run: php -d memory_limit=-1 vendor/bin/phpstan analyse --level max src tests: runs-on: ubuntu-latest @@ -163,4 +163,4 @@ jobs: uses: codecov/codecov-action@v5 with: files: tests/build/logs/clover.xml - token: ${{ secrets.CODECOV_TOKEN }} + token: ${{ secrets.CODECOV_TOKEN_LION_BUNDLE }} diff --git a/.gitignore b/.gitignore index b66dc047..a979a646 100644 --- a/.gitignore +++ b/.gitignore @@ -7,7 +7,7 @@ /storage/**/*.log /storage/postman/ /tests/build/ -/vite/ +/resources/ /app/ .rnd .phpunit.result.cache diff --git a/src/LionBundle/Commands/CommandHandler.php b/src/LionBundle/Commands/CommandHandler.php index bdd0613f..a3470c6e 100644 --- a/src/LionBundle/Commands/CommandHandler.php +++ b/src/LionBundle/Commands/CommandHandler.php @@ -15,6 +15,8 @@ * Initialize the command application to execute its functions * * @package Lion\Bundle\Commands + * + * @codeCoverageIgnore */ class CommandHandler { diff --git a/src/LionBundle/Commands/Lion/DB/CrudCommand.php b/src/LionBundle/Commands/Lion/DB/CrudCommand.php index 43d7bbf6..f500977a 100644 --- a/src/LionBundle/Commands/Lion/DB/CrudCommand.php +++ b/src/LionBundle/Commands/Lion/DB/CrudCommand.php @@ -9,7 +9,6 @@ use Lion\Bundle\Helpers\Commands\Selection\MenuCommand; use Lion\Bundle\Helpers\DatabaseEngine; use Lion\Bundle\Helpers\FileWriter; -use Lion\Command\Command; use Lion\Database\Connection; use Lion\Database\Driver; use LogicException; @@ -39,14 +38,15 @@ class CrudCommand extends MenuCommand ]; /** - * [Object of class FileWriter] + * [Class that allows writing system files] * * @var FileWriter $fileWriter */ private FileWriter $fileWriter; /** - * [Object of class ClassFactory] + * [Fabricates the data provided to manipulate information (folder, class, + * namespace)] * * @var ClassFactory $classFactory */ @@ -115,6 +115,8 @@ protected function configure(): void * * @throws ExceptionInterface * @throws LogicException [When this abstract method is not implemented] + * + * @codeCoverageIgnore */ protected function execute(InputInterface $input, OutputInterface $output): int { @@ -189,6 +191,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int * @return void * * @throws ExceptionInterface + * + * @codeCoverageIgnore */ private function addDBRules(string $entity): void { @@ -215,6 +219,8 @@ private function addDBRules(string $entity): void * @return void * * @throws ExceptionInterface + * + * @codeCoverageIgnore */ private function addControllerAndModel( string $driver, @@ -545,6 +551,8 @@ private function addControllerAndModel( * @return void * * @throws ExceptionInterface + * + * @codeCoverageIgnore */ private function addCapsule( string $driver, @@ -586,6 +594,8 @@ private function addCapsule( * update: array, * delete: array * } + * + * @codeCoverageIgnore */ private function generateCallGettersModel(string $entityPascal, array $columns): array {