<commit_before>name: Build and test
on:
  push:
    branches-ignore:
      - staging.tmp

jobs:
  preflight:
    if: "!contains(github.event.head_commit.message, 'skip ci')"
    runs-on: ubuntu-latest

    steps:
      - run: exit 0

  tests:
    needs: install-dependencies
    runs-on: ubuntu-latest

    strategy:
      fail-fast: false
      matrix:
        node-version: ['14']

    steps:
      - uses: actions/checkout@v2

      - uses: actions/setup-node@v2
        with:
          node-version: ${{ matrix.node-version }}

      # Restore cached dependencies
      - uses: actions/cache@v2
        with:
          path: |
            node_modules
          key: ${{ runner.os }}-dependencies-${{ hashFiles('yarn.lock') }}

      - name: Get yarn cache directory path
        id: yarn-cache-dir-path
        run: echo "::set-output name=dir::$(yarn cache dir)"

      - uses: actions/cache@v2
        id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
        with:
          path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
          key: ${{ runner.os }}-${{ matrix.node-version }}-yarn-${{ hashFiles('**/yarn.lock') }}
          restore-keys: |
            ${{ runner.os }}-${{ matrix.node-version }}-yarn-

      - name: Run default tests
        run: yarn test

  ember-try:
    strategy:
      fail-fast: false
      matrix:
        node-version: ['14']
        embery-try-scenario: ['ember-release', 'ember-beta', 'ember-canary']

    steps:
      - uses: actions/setup-node@v2
        with:
          node-version: ${{ matrix.node-version }}

      # Restore cached dependencies
      - uses: actions/cache@v2
        with:
          path: |
            node_modules
          key: ${{ runner.os }}-dependencies-${{ hashFiles('yarn.lock') }}

      - name: Get yarn cache directory path
        id: yarn-cache-dir-path
        run: echo "::set-output name=dir::$(yarn cache dir)"

      - uses: actions/cache@v2
        id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
        with:
          path: ${{ steps.yarn-cache-dir-path.outputs.dir }}<commit_msg>Expand Ember Try Scenarios<commit_after>name: Build and test
on:
  push:
    branches-ignore:
      - staging.tmp

jobs:
  preflight:
    if: "!contains(github.event.head_commit.message, 'skip ci')"
    runs-on: ubuntu-latest

    steps:
      - run: exit 0

  tests:
    needs: install-dependencies
    runs-on: ubuntu-latest

    strategy:
      fail-fast: false
      matrix:
        node-version: ['14']

    steps:
      - uses: actions/checkout@v2

      - uses: actions/setup-node@v2
        with:
          node-version: ${{ matrix.node-version }}

      # Restore cached dependencies
      - uses: actions/cache@v2
        with:
          path: |
            node_modules
          key: ${{ runner.os }}-dependencies-${{ hashFiles('yarn.lock') }}

      - name: Get yarn cache directory path
        id: yarn-cache-dir-path
        run: echo "::set-output name=dir::$(yarn cache dir)"

      - uses: actions/cache@v2
        id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
        with:
          path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
          key: ${{ runner.os }}-${{ matrix.node-version }}-yarn-${{ hashFiles('**/yarn.lock') }}
          restore-keys: |
            ${{ runner.os }}-${{ matrix.node-version }}-yarn-

      - name: Run default tests
        run: yarn test

  ember-try:
    strategy:
      fail-fast: false
      matrix:
        node-version: ['14']
        embery-try-scenario: ['ember-lts-3.16', 'ember-lts-3.20', 'ember-release', 'ember-beta', 'ember-canary']

    steps:
      - uses: actions/setup-node@v2
        with:
          node-version: ${{ matrix.node-version }}

      # Restore cached dependencies
      - uses: actions/cache@v2
        with:
          path: |
            node_modules
          key: ${{ runner.os }}-dependencies-${{ hashFiles('yarn.lock') }}

      - name: Get yarn cache directory path
        id: yarn-cache-dir-path
        run: echo "::set-output name=dir::$(yarn cache dir)"

      - uses: actions/cache@v2
        id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
        with:
          path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
{'fraction_non_alphanumeric': 0.15017064846416384, 'fraction_numerical': 0.006825938566552901, 'mean_word_length': 1.986413043478261, 'pattern_counts': {'":': 4, '<': 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': '91553', 'n_tokens_mistral': 1466, 'n_tokens_neox': 1376, 'n_words': 313}