Skip to content

mickaelandrieu/psalm-ga

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GithubAction for Psalm

Usage

You can use it as a Github Action like this:

.github/main.workflow

workflow "Main" {
  on = "push"
  resolves = ["Psalm"]
}

action "Psalm" {
  uses = "docker://mickaelandrieu/psalm-ga"
  secrets = ["GITHUB_TOKEN"]
}

to add specific arguments:

workflow "Main" {
  on = "push"
  resolves = ["Psalm"]
}

action "Psalm" {
  uses = "docker://mickaelandrieu/psalm-ga"
  secrets = ["GITHUB_TOKEN"]
+  args = "--find-dead-code --threads=8 --diff --diff-methods"
}

You can copy/paste the .github folder (under examples/) to your project and thats all!

Docker

A Docker-Image is built automatically and located here: https://cloud.docker.com/u/mickaelandrieu/repository/docker/mickaelandrieu/psalm-ga

You can run it in any given directory like this:

docker run --rm -it -w=/app -v ${PWD}:/app mickaelandrieu/psalm-ga:latest