cnimmo16/Run PHP tests on changed files
Run only changed PHP unit test files using Paratest
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Jul 13, 2023
- License
- MIT
Pinned Snippet
uses: cnimmo16/php-test-only-changed@c981a19165030ce40b7a668592ebaf87db490396 # 1.2.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| branch-name | Name of branch to scan for last successful workflow run. Defaults to current branch. | — | — |
| workflow-id | Name of workflow to check for success. Defaults to current workflow. | — | — |
| tests-directory | The directory where the tests are located relative to the root. Defaults to tests. | — | tests |
| ignore-paths | Files to ignore when determining which files to run. | — | vendor,node_modules,_ide_helper.php |
| list-only | List the files that would be run and exit, allowing you to bring your own test runner. | — | false |
| separator | Separator to use when listing files. For use alongside the list-only option | — | , |
| allow-missing | Allow references to namespaces that cannot be found in the repository. When false an error will be thrown. | — | true |
Outputs
| name | description |
|---|---|
| files | A list of test files that should be run based on files changed since the last successful workflow run. |
| file_count | The number of files in the files output. |