<commit_before>name: PHP Mutation testing

on:
  push:
    branches: [ main ]

jobs:
  test:
    runs-on: 'ubuntu-latest'
    steps:
    - name: Setup PHP
      uses: shivammathur/setup-php@v2
      with:
        php-version: '8.1'

    - uses: actions/checkout@v2
      with:
        fetch-depth: 0

    - name: Validate composer.json and composer.lock
      run: composer validate --strict

    - name: Cache Composer packages
      id: composer-cache
      uses: actions/cache@v2
      with:
        path: vendor
        key: ${{ runner.os }}-<KEY>{{ hashFiles('**/composer.lock') }}
        restore-keys: |
          ${{ runner.os <KEY>

    - name: Install dependencies
      run: composer install --prefer-dist --no-progress

    - name: Run test suite
      run: ./vendor/bin/infection --threads=2<commit_msg>Archive a copy of the mutation log results<commit_after>name: PHP Mutation testing

on:
  push:
    branches: [ main ]

jobs:
  test:
    runs-on: 'ubuntu-latest'
    steps:
    - name: Setup PHP
      uses: shivammathur/setup-php@v2
      with:
        php-version: '8.1'

    - uses: actions/checkout@v2
      with:
        fetch-depth: 0

    - name: Validate composer.json and composer.lock
      run: composer validate --strict

    - name: Cache Composer packages
      id: composer-cache
      uses: actions/cache@v2
      with:
        path: vendor
        key: ${{ runner.os }}-<KEY>{{ hashFiles('**/composer.lock') }}
        restore-keys: |
          ${{ runner.os }}-php-8.1

    - name: Install dependencies
      run: composer install --prefer-dist --no-progress

    - name: Run test suite
      run: ./vendor/bin/infection --threads=2

    - name: Archive mutation results
      uses: actions/upload-artifact@v2
      with:
        name: Mutation log
        path: infection.log
{'fraction_non_alphanumeric': 0.11988950276243093, 'fraction_numerical': 0.009392265193370166, 'mean_word_length': 2.033500837520938, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '4876540', 'n_tokens_mistral': 588, 'n_tokens_neox': 563, 'n_words': 154}