Skip to content

Commit 0e435a5

Browse files
committed
Switch to reusable qodana workflow.
1 parent 91c5c00 commit 0e435a5

File tree

1 file changed

+5
-35
lines changed

1 file changed

+5
-35
lines changed

.github/workflows/qodana.yml

Lines changed: 5 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -22,38 +22,8 @@ on:
2222
- '**'
2323

2424
jobs:
25-
qodana:
26-
timeout-minutes: 15
27-
runs-on: ubuntu-latest
28-
permissions:
29-
contents: write
30-
pull-requests: write
31-
checks: write
32-
steps:
33-
- uses: actions/checkout@v3
34-
with:
35-
ref: ${{ github.event.pull_request.head.sha }}
36-
fetch-depth: 0
37-
- name: Install PHP
38-
uses: shivammathur/setup-php@v2
39-
with:
40-
php-version: 8.2
41-
extensions: curl, mbstring, openssl, pdo, pdo_sqlite
42-
ini-values: memory_limit=-1, date.timezone='UTC'
43-
coverage: xdebug
44-
tools: composer:v2
45-
46-
- name: Validate composer.json and composer.lock
47-
run: composer validate
48-
49-
- name: Add Token
50-
run: composer config --global --auth http-basic.enterprise.repo.pimcore.com token ${{ secrets.COMPOSER_PIMCORE_REPO_TOKEN }}
51-
52-
- name: Install dependencies
53-
run: composer install --prefer-dist --no-progress --no-interaction --no-suggest
54-
- name: 'Qodana Scan'
55-
uses: JetBrains/qodana-action@latest
56-
with:
57-
args: --baseline,qodana.sarif.json
58-
env:
59-
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
25+
qodana-check-workflow:
26+
uses: pimcore/workflows-collection-public/.github/workflows/reusable-qodana-check.yaml@main
27+
secrets:
28+
COMPOSER_PIMCORE_REPO_PACKAGIST_TOKEN: ${{ secrets.COMPOSER_PIMCORE_REPO_PACKAGIST_TOKEN }}
29+
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}

0 commit comments

Comments
 (0)