run: composer i
- name: Psalm
- run: composer run psalm -- --monochrome --no-progress --output-format=github --update-baseline --report=results.sarif
+ run: composer run psalm:ci -- --monochrome --no-progress --output-format=github --update-baseline --report=results.sarif
- name: Show potential changes in Psalm baseline
if: always()
run: composer i
- name: Psalm taint analysis
- run: composer run psalm -- --monochrome --no-progress --output-format=github --report=results.sarif --taint-analysis
+ run: composer run psalm:ci -- --monochrome --no-progress --output-format=github --report=results.sarif --taint-analysis
- name: Upload Security Analysis results to GitHub
if: always()
run: composer i
- name: Psalm
- run: composer run psalm -- -c psalm-ocp.xml --monochrome --no-progress --output-format=github --update-baseline
+ run: composer run psalm:ci -- -c psalm-ocp.xml --monochrome --no-progress --output-format=github --update-baseline
- name: Show potential changes in Psalm baseline
if: always()
"cs:fix": "php-cs-fixer fix",
"cs:check": "php-cs-fixer fix --dry-run --diff",
"lint": "find . -name \\*.php -not -path './lib/composer/*' -not -path './build/stubs/*' -print0 | xargs -0 -n1 php -l",
- "psalm": "psalm --threads=1",
- "psalm:update-baseline": "psalm --threads=1 --update-baseline"
+ "psalm": "psalm --threads=$(nproc)",
+ "psalm:ci": "psalm --threads=1",
+ "psalm:update-baseline": "psalm --threads=$(nproc) --update-baseline"
}
}