Skip to content

Commit bedb308

Browse files
author
olaru
committed
remove qodana file
Signed-off-by: olaru <olaru@rospace.com>
1 parent d66fda8 commit bedb308

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Qodana
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
push:
6+
branches:
7+
- '1.0'
8+
- 'releases/*'
9+
10+
jobs:
11+
qodana:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
15+
pull-requests: write
16+
checks: write
17+
strategy:
18+
matrix:
19+
php-versions: [ '8.3', '8.4', '8.5' ]
20+
steps:
21+
- uses: actions/checkout@v6
22+
with:
23+
# to check out the actual pull request commit, not the merge commit
24+
ref: ${{ github.event.pull_request.head.sha }}
25+
fetch-depth: 0 # a full history is required for pull request analysis
26+
- name: Install PHP
27+
uses: shivammathur/setup-php@v2
28+
with:
29+
php-version: ${{ matrix.php-versions }}
30+
coverage: pcov
31+
ini-values: assert.exception=1, zend.assertions=1, error_reporting=-1, log_errors_max_len=0, display_errors=On
32+
tools: composer:v2, cs2pr
33+
34+
- name: Determine composer cache directory
35+
run: echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV
36+
37+
- name: Cache dependencies installed with composer
38+
uses: actions/cache@v5
39+
with:
40+
path: ${{ env.COMPOSER_CACHE_DIR }}
41+
key: php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
42+
restore-keys: |
43+
php${{ matrix.php }}-composer-
44+
- name: Install dependencies with composer
45+
run: composer install --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
46+
- name: 'Qodana Scan'
47+
uses: JetBrains/qodana-action@v2025.3
48+
env:
49+
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}

0 commit comments

Comments
 (0)