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

fix: replace extends with yaml anchor

parent 16c73938
Branches
No related tags found
No related merge requests found
.static-analysis:
.static-analysis: &static-tmpl
image: gitlab.wpdesk.dev:5050/wpdesk/docker-tests/php-box:8.2
needs:
- prepare prefixed vendor
......@@ -6,7 +6,7 @@
# Run phpstan in strict mode (failing pipeline) only if we have baseline, otherwise allow to fail with a warning, suggesting to create one. This behavior will change at the end of the year, when any PHPStan failure will be considered fatal
phpstan:
extends: .static-analysis
<<: *static-tmpl
script:
- |
if [ -f "vendor/bin/phpstan" ]; then
......@@ -27,7 +27,7 @@ phpstan:
allow_failure: false
phpcs:
extends: .static-analysis
<<: *static-tmpl
script:
- vendor/bin/phpcs
allow_failure: true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment