From 035e5861670d173b37664cce5e42b70d0266316a Mon Sep 17 00:00:00 2001 From: Rick Lambrechts Date: Fri, 20 Jun 2025 17:47:12 +0200 Subject: [PATCH] Only run sonarcloud for latest supported PHP version in CI --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d392daf..50a61ef 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,9 @@ on: tags: [ v* ] pull_request: +env: + LATEST_SUPPORTED_PHP_VERSION: 8.4 + jobs: run-tests: runs-on: ubuntu-24.04 @@ -74,8 +77,9 @@ jobs: - name: Coding style PSR12 Check run: vendor/bin/phpcs - + - name: 'Run SonarQube cloud scanner' + if: ${{ matrix.php == env.LATEST_SUPPORTED_PHP_VERSION }} uses: minvws/nl-irealisatie-generic-pipelines/.github/actions/sonarcloud@main with: sonar-token: ${{ secrets.SONAR_TOKEN }}