diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index efd1e23380..75ed4d0121 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -210,41 +210,6 @@ jobs: - name: Static analysis with PHPStan run: ./vendor/bin/phpstan analyse - coverage: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Setup PHP, with composer and extensions - uses: shivammathur/setup-php@v2 - with: - php-version: 8.3 - extensions: ctype, dom, gd, iconv, fileinfo, libxml, mbstring, simplexml, xml, xmlreader, xmlwriter, zip, zlib - coverage: pcov - - - name: Get composer cache directory - id: composer-cache - run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - - - name: Cache composer dependencies - uses: actions/cache@v4 - with: - path: ${{ steps.composer-cache.outputs.dir }} - key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} - restore-keys: ${{ runner.os }}-composer- - - - name: Install dependencies - run: composer install --no-progress --prefer-dist --optimize-autoloader - - - name: Coverage - run: | - ./vendor/bin/phpunit --coverage-clover coverage-clover.xml - composer global require scrutinizer/ocular - ~/.composer/vendor/bin/ocular code-coverage:upload --format=php-clover coverage-clover.xml - release: permissions: contents: write # to create a release (actions/create-release) diff --git a/.scrutinizer.yml b/.scrutinizer.yml deleted file mode 100644 index 78ff6867d1..0000000000 --- a/.scrutinizer.yml +++ /dev/null @@ -1,30 +0,0 @@ -checks: - php: true - -coding_style: - php: - spaces: - before_parentheses: - closure_definition: true - around_operators: - concatenation: true - -build: - nodes: - analysis: - image: default-bionic - environment: - php: 8.2 - tests: - override: - - php-scrutinizer-run - -tools: - external_code_coverage: - timeout: 600 - -build_failure_conditions: - - 'elements.rating(<= D).new.exists' # No new classes/methods with a rating of D or worse allowed - - 'issues.severity(>= MAJOR).new.exists' # New issues of major or higher severity - - 'project.metric_change("scrutinizer.test_coverage", < 0)' # Code Coverage decreased from previous inspection - - 'patches.label("Unused Use Statements").new.exists' # No new unused imports patches allowed