https://github.com/opsway/actions
GitHub Actions collection by OpsWay
https://github.com/opsway/actions
github-actions php psalm
Last synced: about 2 months ago
JSON representation
GitHub Actions collection by OpsWay
- Host: GitHub
- URL: https://github.com/opsway/actions
- Owner: opsway
- Created: 2020-01-13T13:55:46.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-13T13:56:21.000Z (over 6 years ago)
- Last Synced: 2025-12-31T17:45:43.434Z (5 months ago)
- Topics: github-actions, php, psalm
- Language: Dockerfile
- Size: 6.84 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# GitHub Actions collection by OpsWay
[For local test use act](https://github.com/nektos/act)
## Use case
### Static analysis with Psalm
Create alias fo command `psalm`
```shell script
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
```shell script
psalm --init src 8
```
Hide current statistical analysis errors ;)
```shell script
psalm --set-baseline=psalm-debt.xml
```
Run local
```shell script
psalm --show-info=false
```
Run on GitHub Action, create `.github/main.workflow`
```hcl
workflow "Main" {
on = "push"
resolves = ["Psalm"]
}
action "Psalm" {
uses = "docker://quay.io/opsway/actions:psalm"
args = "--show-info=false"
}
```