2023-02-08 09:37:38 -06:00
|
|
|
name: Qodana
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
- develop
|
|
|
|
jobs:
|
|
|
|
qodana:
|
2023-02-08 09:47:55 -06:00
|
|
|
runs-on: ubuntu-latest
|
2023-02-08 09:37:38 -06:00
|
|
|
name: 'Qodana Scan'
|
2023-02-08 09:42:53 -06:00
|
|
|
steps:
|
2023-02-08 12:16:04 -06:00
|
|
|
- name: Setup PHP with no coverage driver
|
|
|
|
uses: shivammathur/setup-php@v2
|
|
|
|
with:
|
|
|
|
php-version: '8.2'
|
|
|
|
coverage: none
|
|
|
|
extensions: bcmath, intl
|
2023-02-08 12:21:21 -06:00
|
|
|
env:
|
|
|
|
update: true
|
2023-02-08 12:09:27 -06:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
|
2023-02-12 00:15:47 -06:00
|
|
|
- name: Install dependencies
|
2023-02-19 01:06:05 -06:00
|
|
|
run: |
|
|
|
|
composer install --no-scripts
|
2023-02-19 01:10:05 -06:00
|
|
|
cp .env.example .env
|
2023-02-19 01:08:47 -06:00
|
|
|
php artisan key:generate
|
2023-02-19 01:06:05 -06:00
|
|
|
php artisan clear-compiled
|
|
|
|
php artisan ide-helper:generate;
|
|
|
|
|
2023-02-08 09:42:53 -06:00
|
|
|
- name: 'Qodana Scan'
|
2023-05-29 05:05:45 -05:00
|
|
|
uses: JetBrains/qodana-action@main
|
2023-02-08 09:42:53 -06:00
|
|
|
env:
|
2023-02-08 09:47:55 -06:00
|
|
|
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
|