Sign inSign up

patrykwozinski/github-actions

By patrykwozinski

•Updated over 7 years ago

Image
0

10K+

patrykwozinski/github-actions repository overview

⁠GitHub Actions

⁠branch-filter action

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'"
}
⁠list-changed-files action

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"
    }
}
⁠phpstan action

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"].

⁠php-cs-fixer action

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"].

Tag summary

Content type

Image

Digest

Size

196.3 MB

Last updated

over 7 years ago

docker pull patrykwozinski/github-actions:phpstan-1.1