It is used to filter and decide which branches should proceed to the next action. Example:
action "Filter Branch" {
uses = "docker://patrykwozinski/github-actions:branch-filter-latest"
args = "'master|dev'"
}
We can list all changed files and save into .ga-changed-files.txt by this action.
action "List changed files" {
uses = "docker://patrykwozinski/github-actions:list-changed-files-latest"
env = {
DIRECTORY = "src/test"
}
}
Used to call actions related to static code analysis using PHPStan. We point to the phpstan.neon file.
Example:
action "PHP Stan" {
uses = "docker://patrykwozinski/github-actions:phpstan-latest"
args = "-c ./phpstan.neon
}
If you need to check if Filter branch was successfully checked - you need to add: needs = ["Filter Branch"].
It is used to trigger actions related to the analysis of coding standards using PHP Code Sniffer Fixed. We point to a file with the .phpcs configuration and additional optional arguments.
Example:
action "PHP CS Fixer" {
uses = "docker://patrykwozinski/github-actions:php-cs-fixer-latest"
args = "--config=.php_cs.dist --diff --dry-run"
needs = ["Filter Branch"]
}
If you need to check if Filter branch was successfully checked - you need to add: needs = ["Filter Branch"].
Content type
Image
Digest
Size
196.3 MB
Last updated
over 7 years ago
docker pull patrykwozinski/github-actions:phpstan-1.1