Skip to content

chore: add workflow to self test the action - #169

Merged
KROSF merged 1 commit into
mainfrom
chore/self-test-workflow
Oct 6, 2026
Merged

KROSF merged 1 commit into
mainfrom
chore/self-test-workflow

Conversation

@KROSF

@KROSF KROSF commented Oct 6, 2026

Copy link
Copy Markdown
Member

Summary

  • Add .github/workflows/self-test.yml, which runs the action from the checkout (uses: ./) against fixture charts in __tests__/fixtures/:
    • changed: charts differ by one line → asserts changed=true, the diff contains the added line as markdown, and targetTemplate is populated.
    • unchanged: same chart on both sides → asserts changed=false and an empty diff.
  • Add an optional targetValuesBranch input (default develop). Previously the target values ref was hardcoded to develop unless the PR body matched targetBranchRegex, so the action couldn't be self-tested in this repo (no develop branch). Existing behavior is unchanged.
  • Rebuild dist/.

Test plan

  • Fixtures render with helm template locally and produce the expected diff
  • pnpm lint, pnpm format-check, pnpm test pass
  • self-test workflow passes on this PR

Add a self-test workflow that runs the action against fixture charts and
asserts its outputs for both changed and unchanged charts.

Add an optional targetValuesBranch input (defaults to develop) so the
target values ref can be set outside of pull request bodies.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@KROSF
KROSF merged commit 79e2d80 into main Oct 6, 2026
6 checks passed
@KROSF
KROSF deleted the chore/self-test-workflow branch October 6, 2026 11:40
@KROSF KROSF mentioned this pull request Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants