...

Text file src/github.com/jackc/pgtype/.github/workflows/ci.yml

Documentation: github.com/jackc/pgtype/.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-latest
    14
    15    services:
    16      postgres:
    17        image: postgres
    18        env:
    19          POSTGRES_PASSWORD: secret
    20        options: >-
    21          --health-cmd pg_isready
    22          --health-interval 10s
    23          --health-timeout 5s
    24          --health-retries 5
    25        ports:
    26          - 5432:5432
    27
    28    steps:
    29
    30    - name: Set up Go 1.x
    31      uses: actions/setup-go@v2
    32      with:
    33        go-version: ^1.13
    34
    35    - name: Check out code into the Go module directory
    36      uses: actions/checkout@v2
    37
    38    - name: Create hstore extension
    39      run: psql -c 'create extension hstore'
    40      env:
    41        PGHOST: localhost
    42        PGUSER: postgres
    43        PGPASSWORD: secret
    44        PGSSLMODE: disable
    45
    46    - name: Create ltree extension
    47      run: psql -c 'create extension ltree'
    48      env:
    49        PGHOST: localhost
    50        PGUSER: postgres
    51        PGPASSWORD: secret
    52        PGSSLMODE: disable
    53
    54    - name: Test
    55      run: go test -v ./...
    56      env:
    57        PGHOST: localhost
    58        PGUSER: postgres
    59        PGPASSWORD: secret
    60        PGSSLMODE: disable

View as plain text