Skip to content

Commit

Permalink
Switch to reusable workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
herbertroth committed Jun 11, 2024
1 parent b79ec1b commit d661d53
Showing 1 changed file with 9 additions and 34 deletions.
43 changes: 9 additions & 34 deletions .github/workflows/qodana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,44 +11,19 @@ on:
branches:
- '*'
- '**'
pull_request:
pull_request_target:
types: [opened, synchronize, reopened]
paths:
- '**.php'
- '**.yml'
- '**.yaml'
branches:
- '*'
- '**'

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 }}
qodana-check-workflow:
uses: pimcore/workflows-collection-public/.github/workflows/reusable-qodana-check.yaml@main
secrets:
COMPOSER_PIMCORE_REPO_PACKAGIST_TOKEN: ${{ secrets.COMPOSER_PIMCORE_REPO_PACKAGIST_TOKEN }}
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}

0 comments on commit d661d53

Please sign in to comment.