Skip to content

feat: add reusable review-e2e-test workflow and skill#52

Open
sowmyav27 wants to merge 2 commits intoloft-sh:mainfrom
sowmyav27:feat/review-e2e-test-reusable-workflow
Open

feat: add reusable review-e2e-test workflow and skill#52
sowmyav27 wants to merge 2 commits intoloft-sh:mainfrom
sowmyav27:feat/review-e2e-test-reusable-workflow

Conversation

@sowmyav27
Copy link
Copy Markdown
Contributor

Summary

  • Adds skills/review-e2e-test/SKILL.md — copy of the checklist from ai-skills (private), served from this public repo so callers need no extra secrets
  • Adds .github/workflows/review-e2e-test.yml — reusable workflow (workflow_call) that installs the skill via curl and runs anthropics/claude-code-action@v1
  • Includes workflow_dispatch trigger to enable testing on a branch before a real PR exists (Jan's trick)

How callers use it

Each target repo (vcluster, vcluster-pro, loft-enterprise) adds a thin caller:

on:
  pull_request:
    paths: ['e2e-next/**']
  workflow_dispatch:

jobs:
  review:
    uses: loft-sh/github-actions/.github/workflows/review-e2e-test.yml@main
    secrets:
      anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}

Test plan

  • Merge this PR to main
  • Add caller workflow to one target repo (e.g. loft-enterprise) and merge stub to main
  • workflow_dispatch from a branch with real e2e-next changes to verify inline comments and request-changes behaviour
  • Test with a clean PR (no violations) to verify passing review comment

Notes

  • SKILL.md must be manually synced when the skill is updated in loft-sh/ai-skills
  • The curl in the workflow fetches from loft-sh/github-actions/main — only resolves after this PR is merged

🤖 Generated with Claude Code

Sowmya viswam and others added 2 commits March 27, 2026 12:03
adds a reusable GitHub Actions workflow that runs the review-e2e-test
quality checklist (C1-C16) on any PR touching e2e-next/ files. the
skill is served from this public repo so callers need no extra secrets.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- add persist-credentials: false to checkout step
- pin claude-code-action to commit hash (970cf56)
- ignore secrets-outside-env: api key passed via workflow_call

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@@ -0,0 +1,525 @@
---
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not in https://github.com/loft-sh/ai-skills? It can also be used locally to review tests before CI.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, this can be part of the e2e-tdd-workflow plugin and then we install the plugin in the pipeline

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also helps since the SKILL.md file points to references it won't be able to resolve 😬

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.

3 participants