<commit_before>name: CI

on: [pull_request, push]

jobs:
  
  lint:

    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v1

      - name: Setup Node
        uses: actions/setup-node@v1
        with:
          node-version: 12
      
      - name: Cache node modules
        id: cache
        uses: actions/cache@v1
        with:
          path: node_modules
          key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }}
          restore-keys: |
            ${{ runner.OS }}-build-${{ env.cache-name }}-
            ${{ runner.OS }}-build-
            ${{ runner.OS }}-:  

      - name: npm install
        if: steps.cache.outputs.cache-hit != 'true'
        run: npm ci
        
      - name: lint
        run: npm run lint --quiet

  build:

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

    strategy:
      matrix:
        node-version: [ 10, 12, 14 ]
        os: [ ubuntu-latest, windows-latest ]

    steps:
    - uses: actions/checkout@v1
    
    - name: Setup Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v1
      with:
        node-version: ${{ matrix.node-version }}
    
    - name: Cache node_modules
      id: cache
      uses: actions/cache@v1
      with:
        path: node_modules
        key: ${{ matrix.os }}-build-${{ hashFiles('**/package-lock.json') }}
        restore-keys: |<commit_msg>chore: cache nested /node_modules too<commit_after>name: CI

on: [pull_request, push]

jobs:
  
  lint:

    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v1

      - name: Setup Node
        uses: actions/setup-node@v1
        with:
          node-version: 12
      
      - name: Cache node modules
        id: cache
        uses: actions/cache@v2
        with:
          path: |
            **/node_modules
          key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }}
          restore-keys: |
            ${{ runner.OS }}-build-${{ env.cache-name }}-
            ${{ runner.OS }}-build-
            ${{ runner.OS }}-:  

      - name: npm install
        if: steps.cache.outputs.cache-hit != 'true'
        run: npm ci
        
      - name: lint
        run: npm run lint --quiet

  build:

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

    strategy:
      matrix:
        node-version: [ 10, 12, 14 ]
        os: [ ubuntu-latest, windows-latest ]

    steps:
    - uses: actions/checkout@v1
    
    - name: Setup Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v1
      with:
        node-version: ${{ matrix.node-version }}
    
    - name: Cache node_modules
      id: cache
      uses: actions/cache@v2
      with:
        path: |
          **/node_modules
        key: ${{ matrix.os }}-build-${{ hashFiles('**/package-lock.json') }}
        restore-keys: |
{'fraction_non_alphanumeric': 0.14565217391304347, 'fraction_numerical': 0.010144927536231883, 'mean_word_length': 1.5852059925093633, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1272996', 'n_tokens_mistral': 938, 'n_tokens_neox': 877, 'n_words': 198}