<commit_before>name: CI

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:

  test:
    name: Test
    runs-on: ubuntu-latest

    strategy:
      matrix:
        go-version: [1.15, 1.16]
        pg-version: [9.6, 10, 11, 12, 13]

    steps:

    - name: Set up Go 1.x
      uses: actions/setup-go@v2
      with:
        go-version: ${{ matrix.go-version }}

    - name: Check out code into the Go module directory
      uses: actions/checkout@v2

    - name: Setup database server for testing
      run: ci/setup_test.bash
      env:
        PGVERSION: ${{ matrix.pg-version }}

    - name: Test
      run: go test -v -race ./...
      env:
        PGX_TEST_CONN_STRING: postgres://pgx_md5:secret@127.0.0.1/pgx_test
        PGX_TEST_UNIX_SOCKET_CONN_STRING: "host=/var/run/postgresql dbname=pgx_test"
        PGX_TEST_TCP_CONN_STRING: postgres://pgx_md5:secret@127.0.0.1/pgx_test
        PGX_TEST_TLS_CONN_STRING: postgres://pgx_md5:secret@127.0.0.1/pgx_test?sslmode=require
        PGX_TEST_MD5_PASSWORD_CONN_STRING: postgres://pgx_md5:secret@127.0.0.1/pgx_test
        PGX_TEST_PLAIN_PASSWORD_CONN_STRING: postgres://pgx_pw:secret@127.0.0.1/pgx_test<commit_msg>Manually specify all build matrix options<commit_after>name: CI

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:

  test:
    name: Test
    runs-on: ubuntu-latest

    strategy:
      matrix:
        include:
          - go-version: 1.15
            pg-version: 13
            pgx-test-conn-string: postgres://pgx_md5:secret@127.0.0.1/pgx_test
          - go-version: 1.16
            pg-version: 9.6
            pgx-test-conn-string: postgres://pgx_md5:secret@127.0.0.1/pgx_test
          - go-version: 1.16
            pg-version: 10
            pgx-test-conn-string: postgres://pgx_md5:secret@127.0.0.1/pgx_test
          - go-version: 1.16
            pg-version: 11
            pgx-test-conn-string: postgres://pgx_md5:secret@127.0.0.1/pgx_test
          - go-version: 1.16
            pg-version: 12
            pgx-test-conn-string: postgres://pgx_md5:secret@127.0.0.1/pgx_test
          - go-version: 1.16
            pg-version: 13
            pgx-test-conn-string: postgres://pgx_md5:secret@127.0.0.1/pgx_test
            pgx-test-unix-socket-conn-string: "host=/var/run/postgresql dbname=pgx_test"
            pgx-test-tcp-conn-string: postgres://pgx_md5:secret@127.0.0.1/pgx_test
            pgx-test-tls-conn-string: postgres://pgx_md5:secret@127.0.0.1/pgx_test?sslmode=require
            pgx-test-md5-password-conn-string: postgres://pgx_md5:secret@127.0.0.1/pgx_test
            pgx-test-plain-password-conn-string: postgres://pgx_pw:secret@127.0.0.1/pgx_test

    steps:

    - name: Set up Go 1.x
      uses: actions/setup-go@v2
      with:
        go-version: ${{ matrix.go-version }}

    - name: Check out code into the Go module directory
      uses: actions/checkout@v2

    - name: Setup database server for testing
      run: ci/setup_test.bash
      env:
        PGVERSION: ${{ matrix.pg-version }}

    - name: Test
      run: go test -v -race ./...
      env:
        PGX_TEST_CONN_STRING: ${{ matrix.pgx-test-conn-string }}
        PGX_TEST_UNIX_SOCKET_CONN_STRING: ${{ matrix.pgx-test-unix-socket-conn-string }}
        PGX_TEST_TCP_CONN_STRING: ${{ matrix.pgx-test-tcp-conn-string }}
        PGX_TEST_TLS_CONN_STRING: ${{ matrix.pgx-test-tls-conn-string }}
        PGX_TEST_MD5_PASSWORD_CONN_STRING: ${{ matrix.pgx-test-md5-password-conn-string }}
        PGX_TEST_PLAIN_PASSWORD_CONN_STRING: ${{ matrix.pgx-test-plain-password-conn-string }}
{'fraction_non_alphanumeric': 0.13047091412742381, 'fraction_numerical': 0.04404432132963989, 'mean_word_length': 2.2385650224215246, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 15, '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': '3480340', 'n_tokens_mistral': 1451, 'n_tokens_neox': 1354, 'n_words': 202}