<commit_before># GitHub workflow to automate amockjs builds

name: amockjs tests

on:
  # push or pull request events to the the master branch
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

  # allow you to run this workflow manually on GitHub from the Actions tab
  workflow_dispatch:

jobs:
  build:
    timeout-minutes: 10
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
      
      - name: setup amockjs server
        working-directory: source
        run: |
          npm install
          cd tests/mock
          node app.js
      
      - name: run all tests
        working-directory: source/tests
        run: |
          npm install
          npx cucumber-js features<commit_msg>+nohup<commit_after># GitHub workflow to automate amockjs builds

name: amockjs tests

on:
  # push or pull request events to the the master branch
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

  # allow you to run this workflow manually on GitHub from the Actions tab
  workflow_dispatch:

jobs:
  build:
    timeout-minutes: 10
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
      
      - name: setup amockjs server
        working-directory: source
        run: |
          npm install
          cd tests/mock
          nohup node app.js
      
      - name: run all tests
        working-directory: source/tests
        run: |
          npm install
          npx cucumber-js features
{'fraction_non_alphanumeric': 0.06119704102219233, 'fraction_numerical': 0.004034969737726967, 'mean_word_length': 1.976, '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': '7119959', 'n_tokens_mistral': 453, 'n_tokens_neox': 426, 'n_words': 150}