<commit_before>name: ruby_event_store-outbox
on: [push]
jobs:
  test:
    runs-on: ubuntu-20.04
    env:
      GEM_NAME: ruby_event_store-outbox
      BUNDLE_GEMFILE: ${{ matrix.gemfile }}
      DATABASE_URL: ${{ matrix.database }}
      GEM_LOCATION: contrib/ruby_event_store-outbox
    services:
      redis:
        image: redis:6
        ports:
          - 6379:6379
    strategy:
      fail-fast: false
      matrix:
        include:
          - ruby: ruby-2.7
            gemfile: Gemfile
            database: sqlite3:db.sqlite3
          - ruby: ruby-2.7
            gemfile: Gemfile.rails_6_0
            database: sqlite3:db.sqlite3
          - ruby: ruby-2.7
            gemfile: Gemfile.rails_5_2
            database: sqlite3:db.sqlite3
          - ruby: ruby-2.6
            gemfile: Gemfile
            database: sqlite3:db.sqlite3
          - ruby: ruby-2.5
            gemfile: Gemfile
            database: sqlite3:db.sqlite3
    steps:
      - uses: actions/checkout@v2
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true
          working-directory: ${{ env.GEM_LOCATION }}
      - run: make test
        working-directory: ${{ env.GEM_LOCATION }}

  mutate:
    runs-on: ubuntu-20.04
    env:
      GEM_NAME: ruby_event_store-outbox
      BUNDLE_GEMFILE: ${{ matrix.gemfile }}
      DATABASE_URL: ${{ matrix.database }}
      GEM_LOCATION: contrib/ruby_event_store-outbox
      REDIS_URL: redis://localhost:6379/0
      MUTANT_JOBS: 1
    services:
      redis:
        image: redis:6
        ports:
          - 6379:6379
    strategy:
      fail-fast: false
      matrix:
        include:
          - ruby: ruby-2.7
            gemfile: Gemfile
            database: "sqlite3::memory:"
    steps:
      - uses: actions/checkout@v2
        with:
          fetch-depth: 0
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true
          working-directory: ${{ env.GEM_LOCATION }}
      - run: make mutate
        working-directory: ${{ env.GEM_LOCATION }}<commit_msg>Only mutate changes on every build<commit_after>name: ruby_event_store-outbox
on: [push]
jobs:
  test:
    runs-on: ubuntu-20.04
    env:
      GEM_NAME: ruby_event_store-outbox
      BUNDLE_GEMFILE: ${{ matrix.gemfile }}
      DATABASE_URL: ${{ matrix.database }}
      GEM_LOCATION: contrib/ruby_event_store-outbox
    services:
      redis:
        image: redis:6
        ports:
          - 6379:6379
    strategy:
      fail-fast: false
      matrix:
        include:
          - ruby: ruby-2.7
            gemfile: Gemfile
            database: sqlite3:db.sqlite3
          - ruby: ruby-2.7
            gemfile: Gemfile.rails_6_0
            database: sqlite3:db.sqlite3
          - ruby: ruby-2.7
            gemfile: Gemfile.rails_5_2
            database: sqlite3:db.sqlite3
          - ruby: ruby-2.6
            gemfile: Gemfile
            database: sqlite3:db.sqlite3
          - ruby: ruby-2.5
            gemfile: Gemfile
            database: sqlite3:db.sqlite3
    steps:
      - uses: actions/checkout@v2
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true
          working-directory: ${{ env.GEM_LOCATION }}
      - run: make test
        working-directory: ${{ env.GEM_LOCATION }}

  mutate:
    runs-on: ubuntu-20.04
    env:
      GEM_NAME: ruby_event_store-outbox
      BUNDLE_GEMFILE: ${{ matrix.gemfile }}
      DATABASE_URL: ${{ matrix.database }}
      GEM_LOCATION: contrib/ruby_event_store-outbox
      REDIS_URL: redis://localhost:6379/0
      MUTANT_JOBS: 1
    services:
      redis:
        image: redis:6
        ports:
          - 6379:6379
    strategy:
      fail-fast: false
      matrix:
        include:
          - ruby: ruby-2.7
            gemfile: Gemfile
            database: "sqlite3::memory:"
    steps:
      - uses: actions/checkout@v2
        with:
          fetch-depth: 0
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true
          working-directory: ${{ env.GEM_LOCATION }}
      - run: make mutate-changes
        working-directory: ${{ env.GEM_LOCATION }}
{'fraction_non_alphanumeric': 0.10517685640665261, 'fraction_numerical': 0.029983602717263996, 'mean_word_length': 1.6704190118824265, 'pattern_counts': {'":': 0, '<': 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': '6531217', 'n_tokens_mistral': 1527, 'n_tokens_neox': 1394, 'n_words': 261}