Skip to content

Commit

Permalink
ci: updated Github Actions settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Sleon4 committed Feb 8, 2025
1 parent 4550d8f commit c03f126
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/storage/**/*.log
/storage/postman/
/tests/build/
/vite/
/resources/
/app/
.rnd
.phpunit.result.cache
Expand Down
2 changes: 2 additions & 0 deletions src/LionBundle/Commands/CommandHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* Initialize the command application to execute its functions
*
* @package Lion\Bundle\Commands
*
* @codeCoverageIgnore
*/
class CommandHandler
{
Expand Down
14 changes: 11 additions & 3 deletions src/LionBundle/Commands/Lion/DB/CrudCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
*/
Expand Down Expand Up @@ -189,6 +189,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int
* @return void
*
* @throws ExceptionInterface
*
* @codeCoverageIgnore
*/
private function addDBRules(string $entity): void
{
Expand All @@ -215,6 +217,8 @@ private function addDBRules(string $entity): void
* @return void
*
* @throws ExceptionInterface
*
* @codeCoverageIgnore
*/
private function addControllerAndModel(
string $driver,
Expand Down Expand Up @@ -545,6 +549,8 @@ private function addControllerAndModel(
* @return void
*
* @throws ExceptionInterface
*
* @codeCoverageIgnore
*/
private function addCapsule(
string $driver,
Expand Down Expand Up @@ -586,6 +592,8 @@ private function addCapsule(
* update: array<int, string>,
* delete: array<int, string>
* }
*
* @codeCoverageIgnore
*/
private function generateCallGettersModel(string $entityPascal, array $columns): array
{
Expand Down

0 comments on commit c03f126

Please sign in to comment.