...

Text file src/github.com/jackc/pgx/v4/.github/workflows/ci.yml

Documentation: github.com/jackc/pgx/v4/.github/workflows

     1name: CI
     2
     3on:
     4  push:
     5    branches: [ master ]
     6  pull_request:
     7    branches: [ master ]
     8
     9jobs:
    10
    11  test:
    12    name: Test
    13    runs-on: ubuntu-20.04
    14
    15    strategy:
    16      matrix:
    17        go-version: [1.17, 1.18]
    18        pg-version: [10, 11, 12, 13, 14, cockroachdb]
    19        include:
    20          - pg-version: 10
    21            pgx-test-database: postgres://pgx_md5:secret@127.0.0.1/pgx_test
    22          - pg-version: 11
    23            pgx-test-database: postgres://pgx_md5:secret@127.0.0.1/pgx_test
    24          - pg-version: 12
    25            pgx-test-database: postgres://pgx_md5:secret@127.0.0.1/pgx_test
    26          - pg-version: 13
    27            pgx-test-database: postgres://pgx_md5:secret@127.0.0.1/pgx_test
    28          - pg-version: 14
    29            pgx-test-database: postgres://pgx_md5:secret@127.0.0.1/pgx_test
    30          - pg-version: cockroachdb
    31            pgx-test-database: "postgresql://root@127.0.0.1:26257/pgx_test?sslmode=disable&experimental_enable_temp_tables=on"
    32
    33    steps:
    34
    35    - name: Set up Go 1.x
    36      uses: actions/setup-go@v2
    37      with:
    38        go-version: ${{ matrix.go-version }}
    39
    40    - name: Check out code into the Go module directory
    41      uses: actions/checkout@v2
    42
    43    - name: Setup database server for testing
    44      run: ci/setup_test.bash
    45      env:
    46        PGVERSION: ${{ matrix.pg-version }}
    47
    48    - name: Test
    49      run: go test -race ./...
    50      env:
    51        PGX_TEST_DATABASE: ${{ matrix.pgx-test-database }}

View as plain text