<commit_before>---
name: build
on: [ push, pull_request ]
jobs:
  test:
    runs-on: ubuntu-20.04
    strategy:
      fail-fast: false
      matrix:
        ruby: [ '2.5.8', '2.6', '2.7', '3.0', '3.1' ]
        gemfile: [ 'rails_5_0', 'rails_5_1', 'rails_5_2', 'rails_6_0', 'rails_6_1', 'rails_7_0' ]
        exclude:
          # Only test latest Rails (Of each major), on actively supported Ruby Versions
          # Only test latest Ruby with latest Rails versions (Of each major)
          # 2.5  -> Not 5.2/6.1
          # 2.6  -> Users of this should be using Rails 5.2+
          # 2.7  -> Users of this should be using Rails 5.2+
          # 3.0  -> Rails 6.1 and 7.0
          # 3.1  -> Only 7.0
          - { ruby: '2.5.8', gemfile: 'rails_5_2' }
          - { ruby: '2.5.8', gemfile: 'rails_6_1' }
          - { ruby: '2.5.8', gemfile: 'rails_7_0' }
          - { ruby: '2.6', gemfile: 'rails_5_0' }
          - { ruby: '2.6', gemfile: 'rails_5_1' }
          - { ruby: '2.6', gemfile: 'rails_7_0' }
          - { ruby: '2.7', gemfile: 'rails_5_0' }
          - { ruby: '2.7', gemfile: 'rails_5_1' }
          - { ruby: '3.0', gemfile: 'rails_5_0' }
          - { ruby: '3.0', gemfile: 'rails_5_1' }
          - { ruby: '3.0', gemfile: 'rails_5_2' }
          - { ruby: '3.0', gemfile: 'rails_6_0' }
          - { ruby: '3.1', gemfile: 'rails_5_0' }
          - { ruby: '3.1', gemfile: 'rails_5_1' }
          - { ruby: '3.1', gemfile: 'rails_5_2' }
          - { ruby: '3.1', gemfile: 'rails_6_0' }
          - { ruby: '3.1', gemfile: 'rails_6_1' }
    env:
      BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
    steps:
      - uses: actions/checkout@v2
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler: '2.1.4'
          bundler-cache: true
      - run: bundle exec rake spec
      - run: bundle exec rubocop<commit_msg>Confirm new rules owing to velocity of ruby / rails releases recently<commit_after>---
name: build
on: [ push, pull_request ]
jobs:
  test:
    runs-on: ubuntu-20.04
    strategy:
      fail-fast: false
      matrix:
        ruby: [ '2.5.8', '2.6', '2.7', '3.0', '3.1' ]
        gemfile: [ 'rails_5_0', 'rails_5_1', 'rails_5_2', 'rails_6_0', 'rails_6_1', 'rails_7_0' ]
        exclude:
          # Newest ruby will test
          # - all permissible rails versions in latest major
          # - latest rails version in the last major
          # Supported rubies will test
          # - all permissible rails versions in latest major
          # - all permissible supported rails versions beneath latest major
          # Unsupported rubies will test
          # - all permissible rails versions released within 6 months of EOL

          # 2.5 -> Unsupported since March '21 -> Only test up to Sep '21
          # 2.6 -> Supported until March '22
          # 2.7 -> Supported until March '23 (At least)
          # 3.0 -> Supported for a while...
          - { ruby: '2.5.8', gemfile: 'rails_5_2' }
          - { ruby: '2.5.8', gemfile: 'rails_6_1' }
          - { ruby: '2.5.8', gemfile: 'rails_7_0' }
          - { ruby: '2.6', gemfile: 'rails_5_0' }
          - { ruby: '2.6', gemfile: 'rails_5_1' }
          - { ruby: '2.6', gemfile: 'rails_7_0' }
          - { ruby: '2.7', gemfile: 'rails_5_0' }
          - { ruby: '2.7', gemfile: 'rails_5_1' }
          - { ruby: '3.0', gemfile: 'rails_5_0' }
          - { ruby: '3.0', gemfile: 'rails_5_1' }
          - { ruby: '3.0', gemfile: 'rails_5_2' }
          - { ruby: '3.0', gemfile: 'rails_6_0' }
          - { ruby: '3.1', gemfile: 'rails_5_0' }
          - { ruby: '3.1', gemfile: 'rails_5_1' }
          - { ruby: '3.1', gemfile: 'rails_5_2' }
          - { ruby: '3.1', gemfile: 'rails_6_0' }
          - { ruby: '3.1', gemfile: 'rails_6_1' }
    env:
      BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
    steps:
      - uses: actions/checkout@v2
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler: '2.1.4'
          bundler-cache: true
      - run: bundle exec rake spec
      - run: bundle exec rubocop
{'fraction_non_alphanumeric': 0.16158684083212385, 'fraction_numerical': 0.059748427672955975, 'mean_word_length': 1.773306505700872, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '1850195', 'n_tokens_mistral': 1687, 'n_tokens_neox': 1547, 'n_words': 384}