An action for Postgres + Valgrind 🎉
- Great for testing Postgres extensions
- Works with regression and TAP tests
Add it as a step to your workflow
- uses: ankane/setup-postgres-valgrind@v1Compile and install your extension
- run: make
- run: sudo --preserve-env=PG_CONFIG make installAnd run your tests
- run: make installcheck
- run: make prove_installcheckErrors are shown on the summary page and in the Post Run step
Specify a Postgres version
- uses: ankane/setup-postgres-valgrind@v1
with:
postgres-version: 18Currently supports 18 (default), 17, 16, 15, 14, 13, and 12
Test against multiple versions
strategy:
matrix:
postgres-version: [17, 16, 15, 14, 13]
steps:
- uses: ankane/setup-postgres-valgrind@v1
with:
postgres-version: ${{ matrix.postgres-version }}Track the origin of uninitialized values (slower but useful for debugging)
- uses: ankane/setup-postgres-valgrind@v1
with:
track-origins: yesThanks to Tom Lane for sharing how to use Valgrind with TAP tests.
Everyone is encouraged to help improve this project. Here are a few ways you can help:
- Report bugs
- Fix bugs and submit pull requests
- Write, clarify, or fix documentation
- Suggest or add new features