Skip to content

ci: add GitHub Actions workflow with PostgreSQL 14-18 matrix#1

Merged
dmonroy merged 4 commits into
mainfrom
ci/pg-version-matrix
Feb 28, 2026
Merged

ci: add GitHub Actions workflow with PostgreSQL 14-18 matrix#1
dmonroy merged 4 commits into
mainfrom
ci/pg-version-matrix

Conversation

@dmonroy

@dmonroy dmonroy commented Feb 28, 2026

Copy link
Copy Markdown
Owner
  • Test extension against PostgreSQL versions 14, 15, 16, 17, 18
  • Build Docker image for each version using PG_MAJOR build arg
  • Run health check and basic embedding test
  • Fail-fast disabled to test all versions

- Test extension against PostgreSQL versions 14, 15, 16, 17, 18
- Build Docker image for each version using PG_MAJOR build arg
- Run health check and basic embedding test
- Fail-fast disabled to test all versions
Use existing build-and-test.sh script instead of manually managing
PostgreSQL startup, which was failing because service postgresql start
doesn't work in official postgres Docker images.

build-and-test.sh already handles:
- Building the image
- Starting container properly
- Running all tests
- Cleanup
Image name format: dmonroy/ai-native-pg:pg14, pg15, etc.
Uses github.repository variable for consistency.
Automatically build and push Docker images on every push to main:
- Matrix strategy for parallel builds (PG 14-18)
- Multi-arch support: linux/amd64, linux/arm64
- Registry-based layer caching for faster builds
- Tags: pg{14-18}-dev for specific versions
- Alias: dev (points to pg18-dev, latest version)

Images pushed to ghcr.io/dmonroy/ai-native-pg:pg{version}-dev
@dmonroy dmonroy merged commit 3a87e6f into main Feb 28, 2026
5 checks passed
@dmonroy dmonroy deleted the ci/pg-version-matrix branch March 2, 2026 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant