cloudnative-pg / cloudnative-pg/cnpg-playground
Add automated testing framework (static analysis, unit tests, dry-run template tests)
- Dominant language
- Shell
- Stars
- 69
- Forks
- 13
- Avg merge
- 6d 1h
- Merged PRs (30d)
- 1
Description
Introduce a local + CI test suite for cnpg-playground: shellcheck/shfmt static analysis, bats unit tests for the shared bash helpers, and dry-run golden-file tests for the demo YAML rendering. Wire it up as a GitHub Actions check, intended to become required before merging to `main`.
Contributor guide
Research direction
Start by locating the shared Bash helpers, demo YAML rendering entry points, and existing GitHub Actions workflows in the repository. Define the local and CI commands for shellcheck/shfmt, bats, and dry-run golden-file tests, then verify that the check covers all three areas and is suitable for requiring before merges to main.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, shell
- Domain
- ci-cd, testing, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100