cnimmo16/Run PHP tests on changed files

Run only changed PHP unit test files using Paratest

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stalelast commit Jul 13, 2023
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: cnimmo16/php-test-only-changed@c981a19165030ce40b7a668592ebaf87db490396 # 1.2.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
branch-nameName of branch to scan for last successful workflow run. Defaults to current branch.
workflow-idName of workflow to check for success. Defaults to current workflow.
tests-directoryThe directory where the tests are located relative to the root. Defaults to tests.tests
ignore-pathsFiles to ignore when determining which files to run.vendor,node_modules,_ide_helper.php
list-onlyList the files that would be run and exit, allowing you to bring your own test runner.false
separatorSeparator to use when listing files. For use alongside the list-only option,
allow-missingAllow references to namespaces that cannot be found in the repository. When false an error will be thrown.true
namedescription
filesA list of test files that should be run based on files changed since the last successful workflow run.
file_countThe number of files in the files output.