<commit_before>name: Tests

on: [push, pull_request]

jobs:
  tests:
    strategy:
      matrix:
        os: [ubuntu-20.04, windows-2022, macos-11]
        # See https://nodejs.org/en/about/releases/ for latest LTS information.
        node: [16] # Active LTS
        include:
          # Also test Maintenance LTS, but just one OS should give us sufficient
          # coverage.
          - node: 14
            os: ubuntu-20.04

    timeout-minutes: 15
    runs-on: ${{ matrix.os }}

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

      - run: npm ci
      - run: npm run build
      - run: npm test

  lint-and-format:
    timeout-minutes: 5
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v2
        with:
          node-version: 16
          cache: npm

      - run: npm ci
      - run: npm run lint
      - run: npm run format:check<commit_msg>Bump actions/checkout from 2 to 3 (#6)<commit_after>name: Tests

on: [push, pull_request]

jobs:
  tests:
    strategy:
      matrix:
        os: [ubuntu-20.04, windows-2022, macos-11]
        # See https://nodejs.org/en/about/releases/ for latest LTS information.
        node: [16] # Active LTS
        include:
          # Also test Maintenance LTS, but just one OS should give us sufficient
          # coverage.
          - node: 14
            os: ubuntu-20.04

    timeout-minutes: 15
    runs-on: ${{ matrix.os }}

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

      - run: npm ci
      - run: npm run build
      - run: npm test

  lint-and-format:
    timeout-minutes: 5
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-node@v2
        with:
          node-version: 16
          cache: npm

      - run: npm ci
      - run: npm run lint
      - run: npm run format:check
{'fraction_non_alphanumeric': 0.10954920019389239, 'fraction_numerical': 0.031507513330101794, 'mean_word_length': 1.6326530612244898, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '4482348', 'n_tokens_mistral': 746, 'n_tokens_neox': 657, 'n_words': 187}