<commit_before>resources:
- name: repo
  type: git
  source:
    uri: https://github.com/bdfoster/nomatic-events.git
 
jobs:
- name: test
  public: true
  serial: true
  plan:
  - get: repo
    trigger: true
  - task: npm install
    config:
      image_resource:
        type: docker-image
        source:
          respository: bdfoster/node
          tag: 'latest'
      inputs:
      - name: repo
      outputs:
      - name: repo
      run:
        path: sh
        - -exc
        - |
          cd repo
          npm install
  - task: npm test
    config:
      image_resource:
        type: docker-image
        source:
          repository: bdfoster/node
          tag: 'latest'
      inputs:
      - name: repo
      run:
        path: sh
        args:
          - -exc
          - |
            cd repo
            npm test<commit_msg>update test plan<commit_after>resources:
- name: repo
  type: git
  source:
    uri: https://github.com/bdfoster/nomatic-events.git
 
jobs:
- name: test
  public: true
  serial: true
  plan:
  - get: repo
    trigger: true
  - task: cache-repo
    config:
      platform: linux
      image_resource:
        type: docker-image
        source:
          repository: bdfoster/node
          tag: latest
      inputs:
      - name: repo
      outputs:
      - name: cache
      run:
        path: sh
        args:
        - -exc
        - |
          cp -R repo/* cache

  - task: npm install
    config:
      platform: linux
      image_resource:
        type: docker-image
        source:
          repository: bdfoster/node
          tag: latest
      inputs:
      - name: repo
      outputs:
      - name: npm-install-cache
      run:
        path: sh
        args:
          - -exc
          - |
            cp -R repo/* npm-install-cache
            cd npm-install-cache
            npm install

  - task: npm run compile
    config:
      platform: linux
      image_resource:
        type: docker-image
        source:
          repository: bdfoster/node
          tag: latest
      inputs:
      - name: npm-install-cache
        path: '.'
      run:
        path: sh
        args:
          - -exc
          - |
            npm run compile

  - task: npm test
    config:
      platform: linux
      image_resource:
        type: docker-image
        source:
          repository: bdfoster/node
          tag: latest
      inputs:
      - name: npm-install-cache
        path: '.'
      run:
        path: sh
        args:
          - -exc
          - |
            npm test
{'fraction_non_alphanumeric': 0.08428967154728928, 'fraction_numerical': 0.0, 'mean_word_length': 1.1793103448275861, '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': '4249388', 'n_tokens_mistral': 769, 'n_tokens_neox': 737, 'n_words': 204}