4444 php-version : ${{ matrix.php-version }}
4545 tools : composer:v2
4646
47- - name : " Set composer cache directory"
48- id : composer-cache
49- run : echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
50-
51- - name : " Cache composer"
52- uses : actions/cache@v4
53- with :
54- path : ${{ steps.composer-cache.outputs.dir }}
55- key : ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }}
56- restore-keys : ${{ runner.os }}-composer-
57-
5847 - name : " Install dependencies"
59- run : composer install --ansi --no-interaction --no-progress
60-
61- - name : Install PHPUnit
6248 id : install
63- run : vendor/bin/simple-phpunit install
49+ run : composer install --ansi --no-interaction --no-progress
6450
6551 - name : Lint YAML files
6652 if : always() && steps.install.outcome == 'success'
@@ -70,10 +56,14 @@ jobs:
7056 if : always() && steps.install.outcome == 'success'
7157 run : ./bin/console lint:twig templates --env=prod
7258
73- - name : Lint XLIFF translations
59+ - name : Lint XLIFF translation files
7460 if : always() && steps.install.outcome == 'success'
7561 run : ./bin/console lint:xliff translations
7662
63+ - name : Lint translation contents
64+ if : always() && steps.install.outcome == 'success'
65+ run : ./bin/console lint:translations
66+
7767 - name : Lint Parameters and Services
7868 if : always() && steps.install.outcome == 'success'
7969 run : ./bin/console lint:container --no-debug
9080 if : always() && steps.install.outcome == 'success'
9181 run : composer audit
9282
83+ static-analysis :
84+ name : PHPStan
85+ runs-on : ubuntu-latest
86+
87+ steps :
88+ - name : Checkout code
89+ uses : actions/checkout@v4
90+
91+ - name : Setup PHP
92+ uses : shivammathur/setup-php@v2
93+ with :
94+ coverage : none
95+ php-version : ' 8.3'
96+
97+ - name : Install dependencies
98+ run : composer install --ansi --no-interaction --no-progress
99+
100+ - name : Install PHPUnit
101+ run : vendor/bin/simple-phpunit install
102+
93103 - name : Run PHPStan
94- if : always() && steps.install.outcome == 'success'
95- run : ./vendor/bin/phpstan analyze
104+ run : vendor/bin/phpstan analyze --no-progress
0 commit comments