Skip to content

Commit 8e668d7

Browse files
Merge pull request #55 from minvws/update-sonarcloud-run
Only run sonarcloud for latest supported PHP version in CI
2 parents 36413e4 + 035e586 commit 8e668d7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
tags: [ v* ]
99
pull_request:
1010

11+
env:
12+
LATEST_SUPPORTED_PHP_VERSION: 8.4
13+
1114
jobs:
1215
run-tests:
1316
runs-on: ubuntu-24.04
@@ -74,8 +77,9 @@ jobs:
7477

7578
- name: Coding style PSR12 Check
7679
run: vendor/bin/phpcs
77-
80+
7881
- name: 'Run SonarQube cloud scanner'
82+
if: ${{ matrix.php == env.LATEST_SUPPORTED_PHP_VERSION }}
7983
uses: minvws/nl-irealisatie-generic-pipelines/.github/actions/sonarcloud@main
8084
with:
8185
sonar-token: ${{ secrets.SONAR_TOKEN }}

0 commit comments

Comments
 (0)