-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (48 loc) · 1.45 KB
/
qodana_code_quality.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Qodana
on:
workflow_dispatch:
push:
branches: [main]
jobs:
qodana:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
id: checkout
with:
fetch-depth: 0
- name: Setup PHP
id: setup-php
if: steps.checkout.outcome == 'success'
uses: shivammathur/setup-php@v2
with:
php-version: "8.2"
extensions: ast, mbstring, pdo, pdo_mysql, xml, zip
coverage: xdebug
- name: Cache Composer Dependencies
id: composer-cache
if: steps.setup-php.outcome == 'success'
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies
id: composer-install
if: steps.setup-php.outcome == 'success'
run: composer install --prefer-dist --no-progress
- name: "Qodana Scan"
id: qodana
if: steps.composer-cache.outcome == 'success'
uses: JetBrains/qodana-action@v2023.3
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
with:
pr-mode: false
#args: --apply-fixes,--baseline,qodana.sarif.json
args: --apply-fixes
push-fixes: pull-request
use-caches: true
post-pr-comment: true
upload-result: false
github-token: ${{ github.token }}