Install composer/npm deps for qodana.

This commit is contained in:
Buster Neece 2023-08-21 16:49:05 -05:00
parent e65d9a6cfc
commit 509bab0b80
No known key found for this signature in database
2 changed files with 20 additions and 1 deletions

View File

@ -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:

View File

@ -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: <SomeEnabledInspectionId>
#Disable inspections
#exclude:
# - name: <SomeDisabledInspectionId>
@ -30,3 +30,5 @@ php:
#Specify Qodana linter for analysis (Applied in CI/CD pipeline)
linter: jetbrains/qodana-php:latest
include:
- name: CheckDependencyLicenses