<commit_before># This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
  push:
    branches: [ $default-branch ]
  pull_request:
    branches: [ $default-branch ]

jobs:
  build:

    runs-on: ubuntu-latest

    strategy:
      matrix:
        node-version: [8.15.1, 10.x]

    steps:
    - uses: actions/checkout@v2
    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v1
      with:
        node-version: ${{ matrix.node-version }}
    - run: export COCO_TRAVIS_TEST=1
    - run: npm install --ignore-scripts
    - run: npm install node-sass
    - run: npm install
    - run: export DISPLAY=:99.0
    - run: ./node_modules/karma/bin/karma start --browsers Firefox --single-run --reporters dots
    - run: npm run test-china<commit_msg>Github Action for automatic CI tests (#639)<commit_after># This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

# Triggering workflow on all push
on: [push]

jobs:
  build:

    runs-on: ubuntu-latest

    strategy:
      matrix:
        node-version: [8.15.1]

    steps:
      - uses: actions/checkout@v2

      - uses: actions/cache@v2
        with:
          path: ~/.npm
          key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
          restore-keys: |
            ${{ runner.os }}-node-

      - name: Use Node.js ${{ matrix.node-version }}
        uses: actions/setup-node@v1
        with:
          node-version: ${{ matrix.node-version }}
      # We can skip webpack since we will build it for testing-ubuntu
      - run: npm ci
        env:
          SKIP_WEBPACK: true
      - run: npm run test-ubuntu
{'fraction_non_alphanumeric': 0.11807937285644292, 'fraction_numerical': 0.010779029887310143, 'mean_word_length': 2.4377104377104377, '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': '4485426', 'n_tokens_mistral': 672, 'n_tokens_neox': 632, 'n_words': 184}