Passed
Pull Request — main (#122)
by Andreas
12:10
created

Checkout Config

#
# Scrutinizer code analysis for PHP.
#
# https://scrutinizer-ci.com/docs/guides/php/
# https://scrutinizer-ci.com/docs/guides/php/continuous-integration-deployment
# https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/
# https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/checks


filter:

  # Everything in a root level "test" directory will be excluded
  excluded_paths:
    - "test/"

  # Everything in a root level "vendor" directory will be excluded from analysis
  # but treated as a dependency
  dependency_paths:
    - "vendor/"


before_commands:
  - "composer install --dev --prefer-source"


# Use new PHP Analysis Engine.
# https://scrutinizer-ci.com/docs/tools/php/php-analyzer/guides/migrate_to_new_php_analysis
build:
  nodes:
    analysis:
      environment:
        php:
          version: 8.1
      tests:
        override:
          - php-scrutinizer-run --enable-security-analysis
          - phpcs-run --standard=.phpcs.xml


# https://scrutinizer-ci.com/docs/tools/external-code-coverage/
tools:
  external_code_coverage:

    enabled: true

    # Scrutinizer will wait for two code coverage submissions
    # in order to cover both PHP7 and PHP8.
    runs: 2