Skip to content

Commit 00cbc71

Browse files
authored
Update qodana_code_quality.yml
Signed-off-by: arhimede <[email protected]>
1 parent 731c243 commit 00cbc71

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/qodana_code_quality.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,26 @@ jobs:
1919
with:
2020
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
2121
fetch-depth: 0 # a full history is required for pull request analysis
22+
- name: Install PHP
23+
uses: shivammathur/setup-php@v2
24+
with:
25+
php-version: "${{ matrix.php }}"
26+
coverage: pcov
27+
ini-values: assert.exception=1, zend.assertions=1, error_reporting=-1, log_errors_max_len=0, display_errors=On
28+
tools: composer:v2, cs2pr
29+
30+
- name: Determine composer cache directory
31+
run: echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV
32+
33+
- name: Cache dependencies installed with composer
34+
uses: actions/cache@v4
35+
with:
36+
path: ${{ env.COMPOSER_CACHE_DIR }}
37+
key: php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
38+
restore-keys: |
39+
php${{ matrix.php }}-composer-
40+
- name: Install dependencies with composer
41+
run: composer install --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
2242
- name: 'Qodana Scan'
2343
uses: JetBrains/[email protected]
2444
env:

0 commit comments

Comments
 (0)