<commit_before># This workflow will do a clean install of node dependencies, cache/restore them, 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: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:

    runs-on: ubuntu-latest

    env:
      SELENIUM_HUB_HOST: hub
      TEST_HOST: localhost

    services:
      hub:
        image: selenium/hub:3.141.59-gold
      firefox:
        image: selenium/node-firefox:3.141.59-gold
        env:
          HUB_HOST: hub
          HUB_PORT: 4444

    strategy:
      fail-fast: false
      matrix:
        # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
        # node: [12, 14, 16]
        node: [12]
        couchdb: ['2.3', '3.1']
        command: [
          'CLIENT=node ADAPTERS=leveldb npm test',
          'CLIENT=node ADAPTERS=memory npm test',
          'CLIENT=selenium:firefox POUCHDB_SRC="../../packages/node_modules/pouchdb/dist/pouchdb.min.js" ADAPTERS=idb npm test',
          'CLIENT=selenium:firefox POUCHDB_SRC="../../packages/node_modules/pouchdb/dist/pouchdb.min.js" ADAPTERS=indexeddb npm test',
          'CLIENT=selenium:firefox POUCHDB_SRC="../../packages/node_modules/pouchdb/dist/pouchdb.min.js" ADAPTERS=memory npm test',
          'CLIENT=selenium:chrome POUCHDB_SRC="../../packages/node_modules/pouchdb/dist/pouchdb.min.js" ADAPTERS=idb npm test',
          'CLIENT=selenium:chrome POUCHDB_SRC="../../packages/node_modules/pouchdb/dist/pouchdb.min.js" ADAPTERS=indexeddb npm test',
          'CLIENT=selenium:chrome POUCHDB_SRC="../../packages/node_modules/pouchdb/dist/pouchdb.min.js" ADAPTERS=memory npm test',
          # skip running tests against real couches just yet
          # 'CLIENT=selenium:firefox ADAPTERS=idb POUCHDB_SRC="../../packages/node_modules/pouchdb/dist/pouchdb.min.js" COUCH_HOST=http://admin:password@127.0.0.1:5984 SKIP_MIGRATIONS=1 npm test',
          # 'CLIENT=selenium:firefox ADAPTERS=indexeddb POUCHDB_SRC="../../packages/node_modules/pouchdb/dist/pouchdb.min.js" COUCH_HOST=http://admin:password@127.0.0.1:5984 SKIP_MIGRATIONS=1 npm test',<commit_msg>Run integration tests against CouchDB and pouchdb-server<commit_after># This workflow will do a clean install of node dependencies, cache/restore them, 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: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:

    runs-on: ubuntu-latest

    env:
      SELENIUM_HUB_HOST: hub
      TEST_HOST: localhost

    services:
      hub:
        image: selenium/hub:3.141.59-gold
      firefox:
        image: selenium/node-firefox:3.141.59-gold
        env:
          HUB_HOST: hub
          HUB_PORT: 4444

    strategy:
      fail-fast: false
      matrix:
        # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
        # node: [12, 14, 16]
        node: [12]
        couchdb: ['2.3', '3.1']
        command: [
          'CLIENT=node ADAPTERS=leveldb npm test',
          'CLIENT=node ADAPTERS=memory npm test',
          'CLIENT=node ADAPTERS=leveldb SERVER=couchdb-master COUCH_HOST=http://admin:password@127.0.0.1:5984 npm test',
          'CLIENT=node ADAPTERS=leveldb SERVER=pouchdb-server npm test',
          'CLIENT=selenium:firefox POUCHDB_SRC="../../packages/node_modules/pouchdb/dist/pouchdb.min.js" ADAPTERS=idb npm test',
          'CLIENT=selenium:firefox POUCHDB_SRC="../../packages/node_modules/pouchdb/dist/pouchdb.min.js" ADAPTERS=indexeddb npm test',
          'CLIENT=selenium:firefox POUCHDB_SRC="../../packages/node_modules/pouchdb/dist/pouchdb.min.js" ADAPTERS=memory npm test',
          'CLIENT=selenium:chrome POUCHDB_SRC="../../packages/node_modules/pouchdb/dist/pouchdb.min.js" ADAPTERS=idb npm test',
          'CLIENT=selenium:chrome POUCHDB_SRC="../../packages/node_modules/pouchdb/dist/pouchdb.min.js" ADAPTERS=indexeddb npm test',
          'CLIENT=selenium:chrome POUCHDB_SRC="../../packages/node_modules/pouchdb/dist/pouchdb.min.js" ADAPTERS=memory npm test',
          # skip running tests against real couches just yet
          # 'CLIENT=selenium:firefox ADAPTERS=idb POUCHDB_SRC="../../packages/node_modules/pouchdb/dist/pouchdb.min.js" COUCH_HOST=http://admin:password@127.0.0.1:5984 SKIP_MIGRATIONS=1 npm test',
          # 'CLIENT=selenium:firefox ADAPTERS=indexeddb POUCHDB_SRC="../../packages/node_modules/pouchdb/dist/pouchdb.min.js" COUCH_HOST=http://admin:password@127.0.0.1:5984 SKIP_MIGRATIONS=1 npm test',
{'fraction_non_alphanumeric': 0.12942638227376269, 'fraction_numerical': 0.022779043280182234, 'mean_word_length': 3.121160409556314, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 5, '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': '1968671', 'n_tokens_mistral': 1739, 'n_tokens_neox': 1638, 'n_words': 300}