refactor: complete action testing system overhaul

- Removed /scratch directory, now cloning pullfrogai/scratch as needed
- Implemented new play.ts testing system with local and Docker/act modes
- Added environment variable propagation to cloned test repositories
- Created minimal .act-dist approach to avoid pnpm symlink issues with Docker
- Migrated from dist/index.js to entry.cjs bundled output
- Added TypeScript fixture support with MainParams type safety
- Organized all test fixtures in fixtures/ directory
- Updated publish workflow to trigger on package.json changes
- Removed unnecessary INPUT_ANTHROPIC_API_KEY references
- Added comprehensive documentation for new testing system
- Fixed pre-commit hook to use entry.cjs instead of dist/
This commit is contained in:
Colin McDonnell
2025-09-09 16:20:00 -07:00
parent ede6cfdfbe
commit 7d633da1be
19 changed files with 27348 additions and 18121 deletions
+10 -10
View File
@@ -1,20 +1,20 @@
name: 'Pullfrog Claude Code Action'
description: 'Execute Claude Code with a prompt using Anthropic API'
author: 'Pullfrog'
name: "Pullfrog Claude Code Action"
description: "Execute Claude Code with a prompt using Anthropic API"
author: "Pullfrog"
inputs:
prompt:
description: 'Prompt to send to Claude Code'
description: "Prompt to send to Claude Code"
required: true
default: 'Hello from Claude Code!'
default: "Hello from Claude Code!"
anthropic_api_key:
description: 'Anthropic API key for Claude Code authentication'
description: "Anthropic API key for Claude Code authentication"
required: false
runs:
using: 'node20'
main: 'index.cjs'
using: "node20"
main: "entry.cjs"
branding:
icon: 'code'
color: 'orange'
icon: "code"
color: "orange"