From 1cac2689aaac937d715298c06ca8e5c6d1f3f578 Mon Sep 17 00:00:00 2001 From: rostislav Date: Thu, 30 May 2024 19:47:23 +0300 Subject: [PATCH] sonarqube test --- .github/workflows/build.yml | 4 ++++ app/code/Magento/Developer/Model/Di/Information.php | 1 + 2 files changed, 5 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5fbb3723fdaf4..be52860519343 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -42,6 +42,10 @@ jobs: -Dsonar.sources=. \ -Dsonar.inclusions=${{ steps.diff.outputs.modified }} fi + - uses: sonarsource/sonarqube-quality-gate-action@master + timeout-minutes: 5 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} # - uses: actions/checkout@v4 # with: diff --git a/app/code/Magento/Developer/Model/Di/Information.php b/app/code/Magento/Developer/Model/Di/Information.php index 37d609fa17c7e..64d09d21ff6c5 100644 --- a/app/code/Magento/Developer/Model/Di/Information.php +++ b/app/code/Magento/Developer/Model/Di/Information.php @@ -58,6 +58,7 @@ public function getPreference($className) if (!isset($this->preferences[$className])) { $this->preferences[$className] = $this->objectManagerConfig->getPreference($className); } + die(); return $this->preferences[$className]; }