mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-27 11:20:39 -06:00
38 lines
973 B
YAML
38 lines
973 B
YAML
name: Qodana
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
- develop
|
|
pull_request:
|
|
types: [ opened, synchronize, reopened ]
|
|
jobs:
|
|
qodana:
|
|
runs-on: ubuntu-latest
|
|
name: 'Qodana Scan'
|
|
steps:
|
|
- name: Setup PHP with no coverage driver
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: '8.2'
|
|
coverage: none
|
|
extensions: bcmath, intl
|
|
env:
|
|
update: true
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
|
|
- name: Install dependencies
|
|
run: |
|
|
composer install --no-scripts
|
|
cp .env.example .env
|
|
php artisan key:generate
|
|
php artisan clear-compiled
|
|
php artisan ide-helper:generate;
|
|
|
|
- name: 'Qodana Scan'
|
|
uses: JetBrains/qodana-action@main
|
|
env:
|
|
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
|