Skip to content
Snippets Groups Projects
Verified Commit 55e10612 authored by Bartek Jaskulski's avatar Bartek Jaskulski
Browse files

fix: always run phpstan if config file found


Previously, pipeline was only triggered, when `.phpstan-baseline` file
existed, ignoring main config file.

Signed-off-by: default avatarBart Jaskulski <bjaskulski@protonmail.com>
parent 664c5471
No related branches found
No related tags found
No related merge requests found
variables:
WPDESK_CI_VERSION: "2023.11.21"
WPDESK_CI_VERSION: "2023.11.22"
MYSQL_ROOT_PASSWORD: "mysql"
MYSQL_DATABASE: "wptest"
MYSQL_USER: "mysql"
......
......@@ -16,12 +16,14 @@ phpstan:
vendor/wpdesk/wp-wpdesk-composer/director/vendor/bin/phpstan analyse --memory-limit=2G
else
echo "PHPStan not found! Install it with 'composer require --dev wpdesk/phpstan-rules'."
# We will be able to use custom exit after removing rules.allow_failure part
# exit 125
# We will be able to handle custom exit after removing rules.allow_failure part
exit 125
fi
allow_failure: true
rules:
- !reference [.skip-mr, rules]
- exists:
- .phpstan.neon.dist
- exists:
- .phpstan-baseline.php
- .phpstan-baseline.neon
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment