feat(ci): add PostgreSQL service for integration tests
Integration Tests / integration-test (push) Failing after 1s
Integration Tests / integration-test (push) Failing after 1s
This commit is contained in:
@@ -12,6 +12,21 @@ 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
|
||||
@@ -22,13 +37,5 @@ jobs:
|
||||
go-version: '1.25'
|
||||
cache: true
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.12'
|
||||
|
||||
- name: Install podman-compose
|
||||
run: pip install podman-compose
|
||||
|
||||
- name: Run all tests
|
||||
run: make test-all
|
||||
run: make test-ci
|
||||
|
||||
Reference in New Issue
Block a user