<commit_before># This workflow will do a clean install of node dependencies, build the source code,
# run unit tests, and perform a SonarCloud scan.

# For more information see:
# https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

# Common FOLIO configurable env:
#   - YARN_TEST_OPTIONS (options to pass to 'yarn test')
#   - SQ_ROOT_DIR (where to scan relative to top-level directory)
#   - FOLIO_NAME
#   - PUBLISH_MOD_DESCRIPTOR (boolean 'true' or 'false')
#   - COMPILE_TRANSLATION_FILES (boolean 'true' or 'false')


name: buildNPM Snapshot
on: 
   push:
   pull_request:
   pull_request_target:
     types: [labeled]

jobs:
  build-npm:
    if: contains(github.event.pull_request.labels.*.name, 'safe fork')
    env:
      YARN_TEST_OPTIONS: '--ci --coverage --colors'
      FOLIO_NAME: folio_users
      FOLIO_NPM_REGISTRY: 'https://repository.folio.org/repository/npm-folioci/'
      NODEJS_VERSION: '12'
      JEST_JUNIT_OUTPUT_DIR: 'artifacts/jest-junit'
      JEST_COVERAGE_REPORT_DIR: 'artifacts/coverage-jest/lcov-report/'
      BIGTEST_JUNIT_OUTPUT_DIR: 'artifacts/runTest'
      BIGTEST_COVERAGE_REPORT_DIR: 'artifacts/coverage/lcov-report/'
      PUBLISH_MOD_DESCRIPTOR: true
      SQ_ROOT_DIR: './src'<commit_msg>for FOLIO-3290<commit_after># This workflow will do a clean install of node dependencies, build the source code,
# run unit tests, and perform a SonarCloud scan.

# For more information see:
# https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

# Common FOLIO configurable env:
#   - YARN_TEST_OPTIONS (options to pass to 'yarn test')
#   - SQ_ROOT_DIR (where to scan relative to top-level directory)
#   - FOLIO_NAME
#   - PUBLISH_MOD_DESCRIPTOR (boolean 'true' or 'false')
#   - COMPILE_TRANSLATION_FILES (boolean 'true' or 'false')


name: buildNPM Snapshot
on: 
   push:
   pull_request:
   pull_request_target:
     types: [labeled]

jobs:
  build-npm:
    env:
      YARN_TEST_OPTIONS: '--ci --coverage --colors'
      FOLIO_NAME: folio_users
      FOLIO_NPM_REGISTRY: 'https://repository.folio.org/repository/npm-folioci/'
      NODEJS_VERSION: '12'
      JEST_JUNIT_OUTPUT_DIR: 'artifacts/jest-junit'
      JEST_COVERAGE_REPORT_DIR: 'artifacts/coverage-jest/lcov-report/'
      BIGTEST_JUNIT_OUTPUT_DIR: 'artifacts/runTest'
      BIGTEST_COVERAGE_REPORT_DIR: 'artifacts/coverage/lcov-report/'
      PUBLISH_MOD_DESCRIPTOR: true
      SQ_ROOT_DIR: './src'
{'fraction_non_alphanumeric': 0.10596293311845285, 'fraction_numerical': 0.0032232070910556, 'mean_word_length': 3.7934362934362933, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '901097', 'n_tokens_mistral': 916, 'n_tokens_neox': 875, 'n_words': 188}