<commit_before>name: Run tests
on: push
jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-latest, windows-latest, macos-latest]
    env:
      PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
    steps:
    - name: Install ubuntu requirements
      if: ${{ matrix.os == 'ubuntu-latest' }}
      run: |
        sudo apt-get -qq update
        sudo apt-get install -y libx11-dev libxss-dev icnsutils graphicsmagick libappindicator1 libxtst-dev
    - uses: actions/checkout@v3
    - name: Use Node.js
      uses: actions/setup-node@v3
      with:
        node-version-file: '.nvmrc'
        cache: 'npm'
    - name: Patch node-gyp
      if: ${{ matrix.os == 'windows-latest' }}
      shell: powershell
      run: |
        npm config set msvs_version 2022
    - run: npm ci
    - run: npm run test-lib
    - name: Run integration tests
      if: ${{ matrix.os != 'ubuntu-latest' }}
      run: npm run test-ui
    - uses: actions/upload-artifact@v3
      with:
        name: logs
        path: |
          ~/.config/Before Dawn/logs/
          ~/Library/Logs/Before Dawn/
          %USERPROFILE%\AppData\Roaming\Before Dawn\logs\<commit_msg>Update artifact paths.  Run ui tests on ubuntu<commit_after>name: Run tests
on: push
jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-latest, windows-latest, macos-latest]
    env:
      PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
    steps:
    - name: Install ubuntu requirements
      if: ${{ matrix.os == 'ubuntu-latest' }}
      run: |
        sudo apt-get -qq update
        sudo apt-get install -y libx11-dev libxss-dev icnsutils graphicsmagick libappindicator1 libxtst-dev
    - uses: actions/checkout@v3
    - name: Use Node.js
      uses: actions/setup-node@v3
      with:
        node-version-file: '.nvmrc'
        cache: 'npm'
    - name: Patch node-gyp
      if: ${{ matrix.os == 'windows-latest' }}
      shell: powershell
      run: |
        npm config set msvs_version 2022
    - run: npm ci
    - run: npm run test-lib
    - name: Run integration tests
      # if: ${{ matrix.os != 'ubuntu-latest' }}
      run: npm run test-ui
    - uses: actions/upload-artifact@v3
      with:
        name: logs
        path: |
          ~/.config/Before Dawn/logs/
          /Users/runner/Library/Logs/mocha/
          C:\Users\runneradmin\AppData\Roaming\mocha\logs\
{'fraction_non_alphanumeric': 0.11784511784511785, 'fraction_numerical': 0.009259259259259259, 'mean_word_length': 2.0280254777070064, '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': '737189', 'n_tokens_mistral': 842, 'n_tokens_neox': 773, 'n_words': 198}