<commit_before>name: Infection Test

on:
  schedule:
    - cron: '33 3 * * 1' # weekly, on Monday morning

env:
  MAILER_DSN: null://null
  ILIOS_LOCALE: en
  ILIOS_SECRET: ThisTokenIsNotSoSecretChangeIt
  ILIOS_FILE_SYSTEM_STORAGE_PATH: /tmp
  SYMFONY_DEPRECATIONS_HELPER: disabled=1
  MESSENGER_TRANSPORT_DSN: doctrine://default
  latest_php: 8.1
  DOCKER_BUILDKIT: 1
jobs:
  infection:
    name: Infection tests
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Use PHP ${{ env.latest_php }}
        uses: shivammathur/setup-php@2.18.1
        with:
          coverage: none
          php-version: ${{ env.latest_php }}
          extensions: apcu
      - name: install dependencies
        run: composer install --no-interaction --prefer-dist
      - name: infection
        run:
          vendor/bin/infection --min-msi=60 --threads=4<commit_msg>geneate code coverage as a pre-step, then run infection on this.<commit_after>name: Infection Test

on:
  schedule:
    - cron: '33 3 * * 1' # weekly, on Monday morning

env:
  MAILER_DSN: null://null
  ILIOS_LOCALE: en
  ILIOS_SECRET: ThisTokenIsNotSoSecretChangeIt
  ILIOS_FILE_SYSTEM_STORAGE_PATH: /tmp
  SYMFONY_DEPRECATIONS_HELPER: disabled=1
  MESSENGER_TRANSPORT_DSN: doctrine://default
  latest_php: 8.1
  DOCKER_BUILDKIT: 1
jobs:
  infection:
    name: Infection tests
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Use PHP ${{ env.latest_php }}
        uses: shivammathur/setup-php@2.18.1
        with:
          coverage: none
          php-version: ${{ env.latest_php }}
          extensions: apcu
      - name: install dependencies
        run: composer install --no-interaction --prefer-dist
      - name: create coverage
        run:
          php -d xdebug.mode=coverage vendor/bin/phpunit --coverage-xml=build/coverage --log-junit=build/coverage/phpunit.junit.xml
      - name: infection
        run:
          vendor/bin/infection --coverage=build/coverage

{'fraction_non_alphanumeric': 0.0995, 'fraction_numerical': 0.0145, 'mean_word_length': 2.611913357400722, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '3806103', 'n_tokens_mistral': 717, 'n_tokens_neox': 683, 'n_words': 152}