Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ef06041

Browse files
committed
[CI] Run all static checks even if one of them fails
1 parent aebb733 commit ef06041

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/application.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,34 +63,42 @@ jobs:
6363
-
6464
name: Install PHP dependencies
6565
run: composer update --no-interaction --no-scripts
66+
id: end-of-setup
6667

6768
-
6869
name: Validate composer.json
6970
run: composer validate --strict
71+
if: always() && steps.end-of-setup.outcome == 'success'
7072

7173
-
7274
name: Check for security vulnerabilities
7375
run: symfony security:check
76+
if: always() && steps.end-of-setup.outcome == 'success'
7477

7578
-
7679
name: Validate Doctrine mapping
7780
run: bin/console doctrine:schema:validate --skip-sync -vvv
81+
if: always() && steps.end-of-setup.outcome == 'success'
7882

7983
-
8084
name: Validate Twig templates
8185
run: bin/console lint:twig src
86+
if: always() && steps.end-of-setup.outcome == 'success'
8287

8388
-
8489
name: Validate Yaml files
8590
run: bin/console lint:yaml src
91+
if: always() && steps.end-of-setup.outcome == 'success'
8692

8793
-
8894
name: Run Psalm
8995
run: vendor/bin/psalm --show-info=false --output-format=github
96+
if: always() && steps.end-of-setup.outcome == 'success'
9097

9198
-
9299
name: Run PHPStan
93100
run: vendor/bin/phpstan analyse -c phpstan.neon -l 1 src
101+
if: always() && steps.end-of-setup.outcome == 'success'
94102

95103
test-application-without-frontend:
96104
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)