earlyai/Generate Tests with EarlyAI

Composite action to setup Node.js, install EarlyAI CLI, and generate tests

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
tokenToken for committing and accessing PR information (defaults to github.token)no""
api-keyAPI key for authenticating with the backend serviceyes
pr-numberPR number (defaults to github.event.pull_request.number)no""
head-refHead reference for the PR (defaults to github.head_ref or github.ref_name)no""
base-refBase reference for the PR (defaults to github.base_ref)no""
test-structureTest file structurenosiblingFolder
test-frameworkTest framework to usenojest
test-suffixTest file suffixnotest
test-file-namingTest file naming conventionnocamelCase
max-concurrencyNumber of concurrent workers (1-4)no3
auto-commitWhether to auto-commit filesnotrue
test-commandCustom test command to run (must include $early_filename)no""
coverage-commandCustom coverage command to run (must include --coverageReporters=json --coverageDirectory=$early_coverage_dir)no""
lint-commandCustom lint command to runno""
prettier-commandCustom prettier command to runno""
base-hostBase host for the API endpointnohttps://api.startearly.ai
node-optionsNode.js options (e.g., --max-old-space-size=6240)no--max-old-space-size=6240
changed-methods-onlyGenerate tests only for changed methods, not all methods in changed filesnotrue
disable-lint-rulesWhether to disable failed lint rules in test filesno""
git-user-emailGit user email for auto commitno""
git-user-nameGit user name for auto commitno""
keep-error-testsWhether to keep error testsno""
keep-failed-testsWhether to keep failed testsno""
continue-on-test-errorsWhether to continue on test errorsnotrue
skip-coverage-afterWhether to skip coverage after test generationnofalse
per-function-timeoutper function timeout in millisecondsno360000
remove-commentsWhether to remove comments from generated testsnotrue
coverage-thresholdCoverage threshold percentage (0-100)no0
max-testablesMaximum number of testables to generate (CLI caps at 10)no0
compress-outputCompress test runner output to reduce token consumptionnotrue

no outputs