<commit_before>name: Build and Test
on:
  push:
    paths-ignore:
      - 'README.md'
  pull_request:
    paths-ignore:
      - 'README.md'

jobs:
  build_and_test:
    name: Build and run tests
    runs-on: ubuntu-latest
    services:
        postgres:
            image: postgres:10
            env:
                POSTGRES_USER: postgres
                POSTGRES_PASSWORD: <PASSWORD>
                POSTGRES_DB: sequelize
            ports:
                - 5432:5432
            options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
    strategy:
      matrix:
        node-version: [10, 12, 14, 16]
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v2
        with:
          node-version: ${{ matrix.node-version }}
          cache: 'npm'
      - run: |
            find ./test/fixtures -path "*/config/*" -not -path "*/node_modules/*" \( -name "datastores.js" -or -name "connections.js" \) -exec sed -i -e "s/: 'localhost'/: 'postgres'/g" {} \;
      - run: npm ci
      - run: npm test
        env:
            PGPASSWORD: <PASSWORD>
      - name: Create test coverage report
        run: ./node_modules/nyc/bin/nyc.js report --reporter=lcovonly
      - name: Coveralls
        uses: coverallsapp/github-action@master
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}<commit_msg>WIP: trying to setup github actions<commit_after>name: Build and Test
on:
  push:
    paths-ignore:
      - 'README.md'
  pull_request:
    paths-ignore:
      - 'README.md'

jobs:
  build_and_test:
    name: Build and run tests
    runs-on: ubuntu-latest
    services:
        postgres:
            image: postgres:10
            env:
                POSTGRES_USER: postgres
                POSTGRES_PASSWORD: <PASSWORD>
                POSTGRES_DB: sequelize
            ports:
                - 5432:5432
            options:
                --health-cmd pg_isready
                --health-interval 10s
                --health-timeout 5s
                --health-retries 5
    strategy:
      matrix:
        node-version: [10, 12, 14, 16]
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v2
        with:
          node-version: ${{ matrix.node-version }}
          cache: 'npm'
      - run: npm ci
      - run: npm test
        env:
            PGPASSWORD: <PASSWORD>
      - name: Create test coverage report
        run: ./node_modules/nyc/bin/nyc.js report --reporter=lcovonly
      - name: Coveralls
        uses: coverallsapp/github-action@master
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
{'fraction_non_alphanumeric': 0.1100114198705748, 'fraction_numerical': 0.018271792919680244, 'mean_word_length': 1.573947110675808, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '803609', 'n_tokens_mistral': 886, 'n_tokens_neox': 815, 'n_words': 193}