ci: add GitHub Actions workflow with PostgreSQL 14-18 matrix#1
Merged
Conversation
dmonroy
commented
Feb 28, 2026
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.