<commit_before>name: "PHPUnit"

on:
  pull_request:
  push:

jobs:
  phpunit:
    name: "PHPUnit"
    env:
      LC_ALL: en_US.UTF-8
      CODE_COVERAGE: n

    runs-on: ${{ matrix.operating-system }}
    services:
      mysql:
        image: mysql:5.7
        env:
          MYSQL_ALLOW_EMPTY_PASSWORD: true
          MYSQL_ROOT_PASSWORD: <PASSWORD>
          MYSQL_DATABASE: concrete5_tests
        ports:
          - 3306:3306/tcp
        options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
    strategy:
      matrix:
        php-version:
          - "7.2"
          - "7.3"
          - "7.4"
#          - "8.0"
        dependencies:
          - "locked"
        operating-system:
          - "ubuntu-latest"

        include:
          - php-version: 7.4
            operating-system: "ubuntu-latest"
            dependencies: "highest"
# Lowest doesn't work at the moment. Revisit once we have dependencies updated.
#          - php-version: 7.4
#            operating-system: "ubuntu-latest"
#            dependencies: "lowest"

    steps:
      - name: "Checkout"
        uses: "actions/checkout@v2"

      - name: "Install PHP"
        uses: shivammathur/setup-php@2.11.0
        with:
          php-version: "${{ matrix.php-version }}"<commit_msg>Use fetchdepth 2 to fix scrutinizer<commit_after>name: "PHPUnit"

on:
  pull_request:
  push:

jobs:
  phpunit:
    name: "PHPUnit"
    env:
      LC_ALL: en_US.UTF-8
      CODE_COVERAGE: n

    runs-on: ${{ matrix.operating-system }}
    services:
      mysql:
        image: mysql:5.7
        env:
          MYSQL_ALLOW_EMPTY_PASSWORD: true
          MYSQL_ROOT_PASSWORD: <PASSWORD>
          MYSQL_DATABASE: concrete5_tests
        ports:
          - 3306:3306/tcp
        options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
    strategy:
      matrix:
        php-version:
          - "7.2"
          - "7.3"
          - "7.4"
#          - "8.0"
        dependencies:
          - "locked"
        operating-system:
          - "ubuntu-latest"

        include:
          - php-version: 7.4
            operating-system: "ubuntu-latest"
            dependencies: "highest"
# Lowest doesn't work at the moment. Revisit once we have dependencies updated.
#          - php-version: 7.4
#            operating-system: "ubuntu-latest"
#            dependencies: "lowest"

    steps:
      - name: "Checkout"
        uses: "actions/checkout@v2"
        with:
          fetch-depth: 2

      - name: "Install PHP"
        uses: shivammathur/setup-php@2.11.0
        with:
          php-version: "${{ matrix.php-version }}"
{'fraction_non_alphanumeric': 0.11859334081556304, 'fraction_numerical': 0.02543958099513655, 'mean_word_length': 1.6422924901185771, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6860744', 'n_tokens_mistral': 932, 'n_tokens_neox': 882, 'n_words': 176}