From 00c45ba8158723e9e02928de6f67ab8d73ebecdd Mon Sep 17 00:00:00 2001 From: Michael Vasseur <14887731+vmcj@users.noreply.github.com> Date: Tue, 25 Jun 2024 14:45:59 +0200 Subject: [PATCH] Move phpunit file to new location We only test code from within the webapp folder so put this closer to the code. --- .github/workflows/phpstan.yml | 2 +- phpstan.dist.neon => webapp/phpstan.dist.neon | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) rename phpstan.dist.neon => webapp/phpstan.dist.neon (66%) diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 38186230205..b5772ef7110 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -18,7 +18,7 @@ jobs: run: .github/jobs/composer_setup.sh - uses: php-actions/phpstan@v3 with: - configuration: phpstan.dist.neon + configuration: webapp/phpstan.dist.neon path: webapp/src webapp/tests php_extensions: gd intl mysqli pcntl zip autoload_file: webapp/vendor/autoload.php diff --git a/phpstan.dist.neon b/webapp/phpstan.dist.neon similarity index 66% rename from phpstan.dist.neon rename to webapp/phpstan.dist.neon index 8613336e605..52c70905c5a 100644 --- a/phpstan.dist.neon +++ b/webapp/phpstan.dist.neon @@ -1,25 +1,25 @@ parameters: level: 6 paths: - - webapp/src - - webapp/tests + - src + - tests excludePaths: - - webapp/src/Utils/Adminer.php + - src/Utils/Adminer.php ignoreErrors: - message: '#Method .* return type has no value type specified in iterable type array#' - path: webapp/tests + path: tests - message: '#Method .* has parameter .* with no value type specified in iterable type array#' - path: webapp/tests + path: tests - message: '#Property .* type has no value type specified in iterable type array#' - path: webapp/tests + path: tests - message: '#PHPDoc tag @var for variable .* has no value type specified in iterable type array#' - path: webapp/tests + path: tests - message: "#Method .* return type has no value type specified in iterable type array#" - path: webapp/src/DataFixtures/Test + path: src/DataFixtures/Test includes: - - webapp/vendor/phpstan/phpstan-doctrine/extension.neon + - vendor/phpstan/phpstan-doctrine/extension.neon