Files
pgsql-broker/.github/workflows/integration.yml
T
warkanum 21ce966d82
Integration Tests / integration-test (push) Failing after 1s
feat(ci): add PostgreSQL service for integration tests
2026-09-18 20:51:41 +02:00

42 lines
780 B
YAML

name: Integration Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
integration-test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:13
env:
POSTGRES_DB: broker_test
POSTGRES_USER: user
POSTGRES_PASSWORD: password
ports:
- 5433:5432
options: >-
--health-cmd="pg_isready -U user"
--health-interval=5s
--health-timeout=5s
--health-retries=10
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.25'
cache: true
- name: Run all tests
run: make test-ci