<commit_before>name: PHP Tests

on:
  push:
    branches: [ develop ]
  pull_request:
    branches: [ develop ]

jobs:

  unit-tests:

    runs-on: ${{ matrix.os }}

    strategy:
      matrix:
        php: [ 8.0, 7.4, 7.3]
        os: [ubuntu-latest]

    steps:
      - uses: actions/checkout@v2

      - name: Setup PHP
        uses: shivammathur/setup-php@v2
        with:
          php-version: ${{ matrix.php }}
          extensions: opcache, gd
          coverage: none
        env:
          COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}

      - name: Update composer
        run: composer update

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

      - name: Get composer cache directory
        id: composer-cache
        run: echo "::set-output name=dir::$(composer config cache-files-dir)"

      - name: Cache dependencies
        uses: actions/cache@v2
        with:
          path: ${{ steps.composer-cache.outputs.dir }}
          key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
          restore-keys: ${{ runner.os }}-composer-

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

      - name: Run test suite
        run: vendor/bin/codecept run
<commit_msg>comment out composer update / validate<commit_after>name: PHP Tests

on:
  push:
    branches: [ develop ]
  pull_request:
    branches: [ develop ]

jobs:

  unit-tests:

    runs-on: ${{ matrix.os }}

    strategy:
      matrix:
        php: [ 8.0, 7.4, 7.3]
        os: [ubuntu-latest]

    steps:
      - uses: actions/checkout@v2

      - name: Setup PHP
        uses: shivammathur/setup-php@v2
        with:
          php-version: ${{ matrix.php }}
          extensions: opcache, gd
          coverage: none
        env:
          COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}

#      - name: Update composer
#        run: composer update
#
#      - name: Validate composer.json and composer.lock
#        run: composer validate

      - name: Get composer cache directory
        id: composer-cache
        run: echo "::set-output name=dir::$(composer config cache-files-dir)"

      - name: Cache dependencies
        uses: actions/cache@v2
        with:
          path: ${{ steps.composer-cache.outputs.dir }}
          key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
          restore-keys: ${{ runner.os }}-composer-

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

      - name: Run test suite
        run: vendor/bin/codecept run

{'fraction_non_alphanumeric': 0.1238390092879257, 'fraction_numerical': 0.00696594427244582, 'mean_word_length': 1.927519818799547, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, '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': '5872052', 'n_tokens_mistral': 811, 'n_tokens_neox': 778, 'n_words': 200}