sozua/Find Impacted Tests
Find test files impacted by code changes using static dependency analysis
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| base | Base ref to compare against (commit SHA, branch, or tag) | no | ${{ github.event.pull_request.base.sha || 'HEAD~1' }} |
| head | Head ref (commit SHA, branch, or tag) | no | HEAD |
| pattern | Glob pattern for test files | no | **/*.{test,spec}.{js,mjs,cjs,jsx,ts,mts,cts,tsx} |
| working-directory | Working directory | no | . |
Outputs
| name | description |
|---|---|
| files | Space-separated list of impacted test files (for xargs/node --test) |
| files-json | JSON array of impacted test files |
| count | Number of impacted test files |
| has-impacted | Whether there are any impacted tests (true/false) |