<commit_before>name: Tests

on:
  push:
    branches: master
  pull_request:
    branches: master

env:
  CI: true
  NODE_VERSION: 12

jobs:
  test:
    name: Tests
    runs-on: ubuntu-latest

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

      - name: Use Node.js ${{ env.NODE_VERSION }}
        uses: actions/setup-node@v1
        with:
          node-version: ${{ env.NODE_VERSION }}

      - run: node --version
      - run: npm --version

      - name: NPM Install
        run: npm ci

      - name: Build
        run: npm run build
        env:
          NODE_ENV: production
          
      - name: Test
        run: npm run test
<commit_msg>ci: setup node matrix for testing<commit_after>name: Tests

on:
  push:
    branches: master
  pull_request:
    branches: master

jobs:
  test:
    name: Tests
    runs-on: ubuntu-latest

    strategy:
    matrix:
      node-version: [12.x, 14.x]

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

      - name: Node v-${{ matrix.node-version }}
        uses: actions/setup-node@v1
        with:
          node-version: ${{ matrix.node-version }}

      - run: node --version
      - run: npm --version

      - name: NPM Install
        run: npm ci

      - name: Build
        run: npm run build
        env:
          NODE_ENV: production

      - name: Test
        run: npm run test

{'fraction_non_alphanumeric': 0.10065170166545981, 'fraction_numerical': 0.00724112961622013, 'mean_word_length': 1.6174242424242424, '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': '7457144', 'n_tokens_mistral': 470, 'n_tokens_neox': 437, 'n_words': 127}