cloudnative-pg / cloudnative-pg/cnpg-playground

Add automated testing framework (static analysis, unit tests, dry-run template tests)

Open
#100 0 comments 0 reactions 0 assignees View on GitHub
enhancement
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.