-
Notifications
You must be signed in to change notification settings - Fork 260
45 lines (44 loc) · 1.31 KB
/
qodana.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
name: Qodana
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
- '7.*'
- '8.*'
jobs:
qodana-php:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y autoconf automake
- name: Try to get qodana in a good state
run: make dist
- name: Install dependencies
run: |
sudo apt install -y composer php php-fpm php-gd \
php-cli php-intl php-mbstring php-mysql \
php-curl php-json php-xml php-zip
composer install
# --no-dev --no-scripts
- name: 'Qodana Scan (PHP)'
uses: JetBrains/[email protected]
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
with:
args: --baseline,qodana.sarif.json,--print-problems,--fail-threshold,1,--linter,jetbrains/qodana-php
upload-result: true
pr-mode: true
- uses: actions/upload-artifact@v3
with:
name: qodana-baseline
path: ${{ runner.temp }}/qodana/results/qodana.sarif.json
- uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json