Skip to content

Fix broken test / only return a CopyDoneResult if we have one #29

Fix broken test / only return a CopyDoneResult if we have one

Fix broken test / only return a CopyDoneResult if we have one #29

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
name: "Test (Go: ${{ matrix.go-version }}, Postgres: ${{ matrix.pg-version }})"
runs-on: ubuntu-latest
strategy:
matrix:
# minimum and latest version of Go
go-version: ["1.21", "1.24"]
# all supported versions of Postgres
pg-version: [13, 14, 15, 16, 17]
fail-fast: false
env:
PGLOGREPL_TEST_CONN_STRING: "postgres://pglogrepl:[email protected]/pglogrepl?replication=database"
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Stand up Postgres ${{ matrix.pg-version }}
run: docker compose up -d postgres
env:
POSTGRES_VERSION: ${{ matrix.pg-version }}
- name: Run tests
run: go test -v -race ./...