Skip to content

Commit

Permalink
Update qodana.yml
Browse files Browse the repository at this point in the history
Switch to reusable workflow
  • Loading branch information
herbertroth authored Apr 30, 2024
1 parent 0b8b5dc commit a1af297
Showing 1 changed file with 5 additions and 38 deletions.
43 changes: 5 additions & 38 deletions .github/workflows/qodana.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,41 +22,8 @@ on:
- '**'

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.2
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: Add authentication for private pimcore packages
run: |
composer config repositories.private-packagist composer https://repo.pimcore.com/github-actions/
composer config --global --auth http-basic.repo.pimcore.com github-actions ${{ secrets.COMPOSER_PIMCORE_REPO_PACKAGIST_TOKEN }}
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-interaction
- name: 'Qodana Scan'
uses: JetBrains/qodana-action@latest
with:
use-caches: false
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 a1af297

Please sign in to comment.