Skip to content

test: bats suite + tag-only Docker publish - #2

Merged
mamahoos merged 2 commits into
mainfrom
feature/tests-tag-release
Aug 18, 2026
Merged

test: bats suite + tag-only Docker publish#2
mamahoos merged 2 commits into
mainfrom
feature/tests-tag-release

Conversation

@mamahoos

Copy link
Copy Markdown
Owner

Summary

  • Restrict docker-publish.yml to tag pushes (v*) only
  • Add test.yml with ShellCheck, bats unit tests, and Postgres integration tests on PR/main
  • Add 15 unit tests + 8 integration tests via bats

Test plan

  • ./scripts/test.sh (15 unit tests pass locally)
  • CI Test workflow on PR
  • Tag v2.0.0 triggers Docker publish to GHCR

Run shellcheck and bats unit/integration tests on main and PRs.
Publish GHCR images only when a version tag is pushed.
@mamahoos mamahoos added the enhancement New feature or request label Aug 18, 2026
@mamahoos mamahoos self-assigned this Aug 18, 2026
Full sync test must not use -q when asserting the ok line. Data-only
sync needs --no-clean so pg_dump does not drop the pre-created table.
@mamahoos
mamahoos merged commit 1cb0a82 into main Aug 18, 2026
3 checks passed
@mamahoos
mamahoos deleted the feature/tests-tag-release branch August 18, 2026 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant