Skip to content

Commit

Permalink
Add Qodana.
Browse files Browse the repository at this point in the history
  • Loading branch information
herbertroth committed Dec 12, 2023
1 parent 4f72e3b commit f46b9a4
Show file tree
Hide file tree
Showing 4 changed files with 708 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/qodana.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Qodana
on:
schedule:
- cron: '0 01 * * *' # Run once per day
workflow_dispatch:
push:
paths:
- '**.php'
- '**.yml'
- '**.yaml'
branches:
- '*'
- '**'
pull_request:
types: [opened, synchronize, reopened]
paths:
- '**.php'
- '**.yml'
- '**.yaml'

jobs:
qodana:
timeout-minutes: 15
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
checks: write
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
extensions: curl, mbstring, openssl, pdo, pdo_sqlite
ini-values: memory_limit=-1, date.timezone='UTC'
coverage: xdebug
tools: composer:v2

- name: Validate composer.json and composer.lock
run: composer validate

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-interaction --no-suggest

- name: 'Qodana Scan'
uses: JetBrains/[email protected]
with:
args: --baseline,qodana.sarif.json
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
Loading

0 comments on commit f46b9a4

Please sign in to comment.