Skip to content

Commit

Permalink
Revert "[PW-6785] - Coverage report for SonarCloud (#1665)" (#1671)
Browse files Browse the repository at this point in the history
This reverts commit f053b6f.
  • Loading branch information
candemiralp authored and Morerice committed Aug 22, 2022
1 parent 1f87a9d commit fb43a24
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 42 deletions.
17 changes: 2 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
22 changes: 1 addition & 21 deletions Test/phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,12 @@
-->
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/6.3/phpunit.xsd"
bootstrap="./bootstrap.php"
colors="true"
>
<php>
<ini name="display_errors" value="On"/>
<ini name="memory_limit" value="-1"/>
<ini name="max_execution_time" value="0"/>
<ini name="display_startup_errors" value="On"/>
<ini name="error_reporting" value="E_ALL"/>
<ini name="date.timezone" value="UTC"/>
<server name="SHELL_VERBOSITY" value="-1"/>
</php>

<testsuites>
<testsuite name="default">
<directory>.</directory>
</testsuite>
</testsuites>

<coverage processUncoveredFiles="false">
<include>
<directory suffix=".php">../.</directory>
</include>
<exclude>
<directory>../vendor</directory>
</exclude>
</coverage>
</phpunit>
6 changes: 0 additions & 6 deletions sonar-project.properties

This file was deleted.

0 comments on commit fb43a24

Please sign in to comment.