firefly-iii/.github/workflows/qodana.yml

36 lines
912 B
YAML
Raw Normal View History

2023-02-08 09:37:38 -06:00
name: Qodana
on:
workflow_dispatch:
push:
branches:
- main
- develop
jobs:
qodana:
runs-on: ubuntu-latest
2023-02-08 09:37:38 -06:00
name: 'Qodana Scan'
2023-02-08 09:42:53 -06:00
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
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:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}