Skip to content
/ actions Public

GitHub Actions collection by OpsWay

Notifications You must be signed in to change notification settings

opsway/actions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

GitHub Actions collection by OpsWay

For local test use act

Use case

Static analysis with Psalm

Create alias fo command psalm

alias psalm="docker run --rm -it -v \${PWD}:/app quay.io/opsway/actions:psalm"

Create config where config_level represents how strict you want Psalm to be.

1 is the strictest, 8 is the most lenient

psalm --init src 8 

Hide current statistical analysis errors ;)

psalm --set-baseline=psalm-debt.xml

Run local

psalm --show-info=false

Run on GitHub Action, create .github/main.workflow

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

action "Psalm" {
  uses = "docker://quay.io/opsway/actions:psalm"
  args = "--show-info=false"
}