<commit_before>name: CI

on:
  push:
    branches-ignore:
      - 'task/**'
      - 'bugfix/**'
      - 'feature/**'
  pull_request:

jobs:

  build-php:
    name: Build PHP
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      max-parallel: 4
      matrix:
        typo3: ['^10', '^11']
        php: ['7.2', '7.3', '7.4', '8.0']
        mysql: ['5.7']
        exclude:
          - typo3: '^10'
            php: '8.0'
          - typo3: '^11'
            php: '7.2'
          - typo3: '^11'
            php: '7.3'
    steps:
      - name: Checkout Code
        uses: actions/checkout@v2
      - name: Set up MySQL ${{ matrix.mysql }}
        uses: mirromutth/mysql-action@v1.1
        with:
          mysql version: ${{ matrix.mysql }}
          mysql root password: '<PASSWORD>'
      - name: Set up PHP ${{ matrix.php }}
        uses: shivammathur/setup-php@v2
        with:
          php-version: ${{ matrix.php }}
          tools: composer:v2
      - name: Install
        run: |
          composer require typo3/cms-core:${{ matrix.typo3 }} --no-progress
          git checkout composer.json
      - name: Lint
        run: |
          composer test:php:lint
      - name: CGL
        run: |
          composer cgl
      - name: PHPStan
        continue-on-error: true
        run: |
          composer phpstan -- --error-format=github
      - name: Unit Tests
        run: |
          composer test:php:unit
      - name: Functional Tests
        run: |
          composer test:php:functional
        env:
          COMPOSER_PROCESS_TIMEOUT: 1200
          typo3DatabaseHost: 127.0.0.1
          typo3DatabaseName: t3func
          typo3DatabasePassword: <PASSWORD>
          typo3DatabaseUsername: root

  build-frontend:
    name: Build Frontend
    runs-on: ubuntu-latest
    steps:<commit_msg>[TASK] Don´t continue on PHPStan errors<commit_after>name: CI

on:
  push:
    branches-ignore:
      - 'task/**'
      - 'bugfix/**'
      - 'feature/**'
  pull_request:

jobs:

  build-php:
    name: Build PHP
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      max-parallel: 4
      matrix:
        typo3: ['^10', '^11']
        php: ['7.2', '7.3', '7.4', '8.0']
        mysql: ['5.7']
        exclude:
          - typo3: '^10'
            php: '8.0'
          - typo3: '^11'
            php: '7.2'
          - typo3: '^11'
            php: '7.3'
    steps:
      - name: Checkout Code
        uses: actions/checkout@v2
      - name: Set up MySQL ${{ matrix.mysql }}
        uses: mirromutth/mysql-action@v1.1
        with:
          mysql version: ${{ matrix.mysql }}
          mysql root password: '<PASSWORD>'
      - name: Set up PHP ${{ matrix.php }}
        uses: shivammathur/setup-php@v2
        with:
          php-version: ${{ matrix.php }}
          tools: composer:v2
      - name: Install
        run: |
          composer require typo3/cms-core:${{ matrix.typo3 }} --no-progress
          git checkout composer.json
      - name: Lint
        run: |
          composer test:php:lint
      - name: CGL
        run: |
          composer cgl
      - name: PHPStan
        run: |
          composer phpstan -- --error-format=github
      - name: Unit Tests
        run: |
          composer test:php:unit
      - name: Functional Tests
        run: |
          composer test:php:functional
        env:
          COMPOSER_PROCESS_TIMEOUT: 1200
          typo3DatabaseHost: 127.0.0.1
          typo3DatabaseName: t3func
          typo3DatabasePassword: <PASSWORD>
          typo3DatabaseUsername: root

  build-frontend:
    name: Build Frontend
    runs-on: ubuntu-latest
    steps:
{'fraction_non_alphanumeric': 0.125, 'fraction_numerical': 0.02918502202643172, 'mean_word_length': 1.512448132780083, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '3360215', 'n_tokens_mistral': 1242, 'n_tokens_neox': 1185, 'n_words': 276}