From fb43a24414125a534a9c0d414fdbf129a5bdfd53 Mon Sep 17 00:00:00 2001 From: Can Demiralp Date: Thu, 18 Aug 2022 17:15:10 +0200 Subject: [PATCH] Revert "[PW-6785] - Coverage report for SonarCloud (#1665)" (#1671) This reverts commit f053b6f93fa900197ff751d0db04242688d15ae6. --- .github/workflows/main.yml | 17 ++--------------- Test/phpunit.xml | 22 +--------------------- sonar-project.properties | 6 ------ 3 files changed, 3 insertions(+), 42 deletions(-) delete mode 100644 sonar-project.properties diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6a2f998b3..0691b6896 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,8 +16,7 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-version }} - tools: composer:v1 - + tools: composer:v1, - name: Test plugin installation run: | echo "{\"http-basic\":{\"repo.magento.com\":{\"username\":\"${MAGENTO_USERNAME}\",\"password\":\"${MAGENTO_PASSWORD}\"}}}" > auth.json @@ -26,19 +25,7 @@ jobs: CI: true MAGENTO_USERNAME: ${{ secrets.MAGENTO_USERNAME }} MAGENTO_PASSWORD: ${{ secrets.MAGENTO_PASSWORD }} - - name: Code Sniffer run: vendor/bin/phpcs --extensions=php,phtml --error-severity=10 --ignore-annotations - - name: Run PHPUnit - run: vendor/bin/phpunit --coverage-clover=build/clover.xml --log-junit=build/tests-log.xml -c Test/phpunit.xml Test/Unit - - - name: Fix code coverage paths - run: sed -i "s;`pwd`/;;g" build/*.xml - - - name: SonarCloud Scan - if: ${{ env.SONAR_TOKEN }} - uses: SonarSource/sonarcloud-github-action@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + run: vendor/bin/phpunit Test/Unit diff --git a/Test/phpunit.xml b/Test/phpunit.xml index 590d23719..15e8cb216 100644 --- a/Test/phpunit.xml +++ b/Test/phpunit.xml @@ -10,32 +10,12 @@ --> - - - - - - - - - - . - - - - ../. - - - ../vendor - - diff --git a/sonar-project.properties b/sonar-project.properties deleted file mode 100644 index b7ff9ca0b..000000000 --- a/sonar-project.properties +++ /dev/null @@ -1,6 +0,0 @@ -sonar.organization=adyen -sonar.projectKey=Adyen_adyen-magento2 -sonar.sources=. -sonar.exclusions=vendor/**/* -sonar.php.coverage.reportPaths=build/clover.xml -sonar.php.tests.reportPath=build/tests-log.xml