Skip to content

ci

ci #283

Workflow file for this run

name: 'test'
on:
pull_request:
push:
#on:
# pull_request:
# paths: ['**.go', 'go.mod', '.github/workflows/*']
# push:
# branches: ['main']
jobs:
staticcheck:
name: 'staticcheck'
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v6'
- uses: 'dominikh/staticcheck-action@v1.3.1'
with: {version: '2025.1.1'}
test:
runs-on: 'ubuntu-latest'
strategy:
fail-fast: false
matrix:
#pg: ['14', '15', '16', '17']
#go: ['1.18', '1.25']
pg: ['17']
go: ['1.25']
steps:
- uses: 'actions/checkout@v6'
- uses: 'actions/setup-go@v6'
with:
go-version: ${{ matrix.go }}
- name: 'Run tests'
run: |
docker compose up pg${{ matrix.pg }} -d --wait || exit 1
echo '127.0.0.1 postgres' | sudo tee -a /etc/hosts
PQTEST_BINARY_PARAMETERS=no go test -race ./...
PQTEST_BINARY_PARAMETERS=yes go test -race ./...