diff --git a/.github/workflows/qodana.yml b/.github/workflows/qodana.yml index c284273f5..33ce586e0 100644 --- a/.github/workflows/qodana.yml +++ b/.github/workflows/qodana.yml @@ -13,6 +13,23 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.2' + extensions: intl, xdebug + tools: composer:v2, cs2pr + + - name: Run Composer install + run: | + composer install --no-interaction --ignore-platform-reqs + + - name: Run NPM install + run: | + cd frontend + npm ci --include=dev + - name: 'Qodana Scan' uses: JetBrains/qodana-action@v2023.2 env: diff --git a/qodana.yaml b/qodana.yaml index 630c7bdcc..696814a97 100644 --- a/qodana.yaml +++ b/qodana.yaml @@ -2,6 +2,7 @@ # Qodana analysis is configured by qodana.yaml file # # https://www.jetbrains.com/help/qodana/qodana-yaml.html # #-------------------------------------------------------------------------------# + version: "1.0" #Specify inspection profile for code analysis @@ -11,7 +12,6 @@ profile: #Enable inspections #include: # - name: - #Disable inspections #exclude: # - name: @@ -30,3 +30,5 @@ php: #Specify Qodana linter for analysis (Applied in CI/CD pipeline) linter: jetbrains/qodana-php:latest +include: + - name: CheckDependencyLicenses