<commit_before>name: Unit Tests

on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - "*"
  schedule:
  - cron: '0 0 * * *'

jobs:
  php-tests:
    runs-on: ubuntu-latest
    timeout-minutes: 15
    env:
      COMPOSER_NO_INTERACTION: 1

    strategy:
      matrix:
        php: [8.0, 7.4, 7.3, 7.2]
        laravel: [8.*, 6.*, 7.*]
        dependency-version: [prefer-lowest, prefer-stable]
        exclude:
          - laravel: 8.*
            php: 7.2

    name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}

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

    - name: Setup PHP
      uses: shivammathur/setup-php@v2
      with:
        php-version: ${{ matrix.php }}
        coverage: none
        tools: composer:v2

    - name: Install dependencies
      run: |
        composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
        composer update --${{ matrix.dependency-version }} --prefer-dist --no-progress

    - name: Update Dusk Chromedriver
      run: vendor/bin/dusk-updater detect --auto-update

    - name: Execute Unit Tests
      run: composer test

    - name: Upload Failed Screenshots
      uses: actions/upload-artifact@v2-preview
      if: failure()
      with:
        name: screenshots
        path: tests/Browser/screenshots/*
<commit_msg>Add extensions to php test (#1139)<commit_after>name: Unit Tests

on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - "*"
  schedule:
  - cron: '0 0 * * *'

jobs:
  php-tests:
    runs-on: ubuntu-latest
    timeout-minutes: 15
    env:
      COMPOSER_NO_INTERACTION: 1

    strategy:
      matrix:
        php: [8.0, 7.4, 7.3, 7.2]
        laravel: [8.*, 6.*, 7.*]
        dependency-version: [prefer-lowest, prefer-stable]
        exclude:
          - laravel: 8.*
            php: 7.2

    name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}

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

    - name: Setup PHP
      uses: shivammathur/setup-php@v2
      with:
        php-version: ${{ matrix.php }}
        coverage: none
        tools: composer:v2
        extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif

    - name: Install dependencies
      run: |
        composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
        composer update --${{ matrix.dependency-version }} --prefer-dist --no-progress

    - name: Update Dusk Chromedriver
      run: vendor/bin/dusk-updater detect --auto-update

    - name: Execute Unit Tests
      run: composer test

    - name: Upload Failed Screenshots
      uses: actions/upload-artifact@v2-preview
      if: failure()
      with:
        name: screenshots
        path: tests/Browser/screenshots/*

{'fraction_non_alphanumeric': 0.12931034482758622, 'fraction_numerical': 0.017241379310344827, 'mean_word_length': 2.0250260688216892, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '4645148', 'n_tokens_mistral': 1022, 'n_tokens_neox': 945, 'n_words': 236}