Skip to content

Add workflow to auto-update test summary via Claude#146

Open
vishalchangrani wants to merge 3 commits intomainfrom
vishal/claude_test_github_action
Open

Add workflow to auto-update test summary via Claude#146
vishalchangrani wants to merge 3 commits intomainfrom
vishal/claude_test_github_action

Conversation

@vishalchangrani
Copy link
Contributor

@vishalchangrani vishalchangrani commented Feb 8, 2026

Summary

  • Adds a new GitHub Actions workflow (.github/workflows/update_test_summary.yml) that automatically triggers when test files (cadence/tests/*_test.cdc or test_helpers.cdc) are changed on main
  • Uses anthropics/claude-code-action@v1 to analyze the full test suite, scan for TODOs, and update TODO_AND_MISSING_TESTS_SUMMARY.md
  • Creates a separate PR with the updated test summary document
  • Includes workflow_dispatch trigger for manual testing

Setup required

  • Add ANTHROPIC_API_KEY as a repository secret (Settings > Secrets and variables > Actions)

Test plan

  • Add ANTHROPIC_API_KEY secret to the repository
  • Trigger the workflow manually via workflow_dispatch from the Actions tab
  • Verify Claude creates a branch and opens a PR with an updated TODO_AND_MISSING_TESTS_SUMMARY.md
  • Merge a PR that touches a test file and verify the workflow fires automatically

🤖 Generated with Claude Code

Adds a GitHub Actions workflow that triggers when test files are
changed on main. Uses claude-code-action to analyze the test suite
and create a PR updating TODO_AND_MISSING_TESTS_SUMMARY.md.

Co-Authored-By: Claude (claude-opus-4-6) <noreply@anthropic.com>
@vishalchangrani vishalchangrani requested a review from a team as a code owner February 8, 2026 02:01
@vishalchangrani vishalchangrani self-assigned this Feb 8, 2026
@vishalchangrani
Copy link
Contributor Author

  • added the ANTHROPIC_API_KEY to this project.

@Kay-Zee
Copy link
Member

Kay-Zee commented Feb 9, 2026

is the API key your API key? If there is a "name" or some other identifier for it, can you include it here in the PR?

Also, have you tested this? Is there a test PR you could link to if you have?

@vishalchangrani
Copy link
Contributor Author

vishalchangrani commented Feb 10, 2026

is the API key your API key? If there is a "name" or some other identifier for it, can you include it here in the PR?

Also, have you tested this? Is there a test PR you could link to if you have?

The Key name is Claude is
github_action_flow_credit_market and is an organization wide key (not my personal API key).

It can be viewed here https://platform.claude.com/settings/keys?search=github_action_flow_credit_market

@vishalchangrani
Copy link
Contributor Author

is the API key your API key? If there is a "name" or some other identifier for it, can you include it here in the PR?

Also, have you tested this? Is there a test PR you could link to if you have?

I tried testing it (locally and on github) but it doesn't work. The action will only work after I merge this PR in.

From Claude.

GitHub requires the workflow YAML file to exist on the repository's default branch (main) before it can be triggered via workflow_dispatch -- whether from the Actions UI or the gh CLI. Since your workflow file only exists on the vishal/claude_test_github_action branch (pending PR #146), GitHub returns a 404. Merging locally doesn't help either, because gh workflow run triggers execution on GitHub's servers using the remote main, and branch protection prevents pushing directly to remote main. The only path forward is to get PR #146 reviewed and merged.

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