Install composer/npm deps for qodana.
This commit is contained in:
parent
e65d9a6cfc
commit
509bab0b80
|
@ -13,6 +13,23 @@ jobs:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
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'
|
- name: 'Qodana Scan'
|
||||||
uses: JetBrains/qodana-action@v2023.2
|
uses: JetBrains/qodana-action@v2023.2
|
||||||
env:
|
env:
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
# Qodana analysis is configured by qodana.yaml file #
|
# Qodana analysis is configured by qodana.yaml file #
|
||||||
# https://www.jetbrains.com/help/qodana/qodana-yaml.html #
|
# https://www.jetbrains.com/help/qodana/qodana-yaml.html #
|
||||||
#-------------------------------------------------------------------------------#
|
#-------------------------------------------------------------------------------#
|
||||||
|
|
||||||
version: "1.0"
|
version: "1.0"
|
||||||
|
|
||||||
#Specify inspection profile for code analysis
|
#Specify inspection profile for code analysis
|
||||||
|
@ -11,7 +12,6 @@ profile:
|
||||||
#Enable inspections
|
#Enable inspections
|
||||||
#include:
|
#include:
|
||||||
# - name: <SomeEnabledInspectionId>
|
# - name: <SomeEnabledInspectionId>
|
||||||
|
|
||||||
#Disable inspections
|
#Disable inspections
|
||||||
#exclude:
|
#exclude:
|
||||||
# - name: <SomeDisabledInspectionId>
|
# - name: <SomeDisabledInspectionId>
|
||||||
|
@ -30,3 +30,5 @@ php:
|
||||||
|
|
||||||
#Specify Qodana linter for analysis (Applied in CI/CD pipeline)
|
#Specify Qodana linter for analysis (Applied in CI/CD pipeline)
|
||||||
linter: jetbrains/qodana-php:latest
|
linter: jetbrains/qodana-php:latest
|
||||||
|
include:
|
||||||
|
- name: CheckDependencyLicenses
|
||||||
|
|
Loading…
Reference in New Issue