Skip to content

Commit

Permalink
fix(CI): Temporary workaround - Run Psalm CI with 1 thread only so it…
Browse files Browse the repository at this point in the history
… finishes

Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Jun 1, 2023
1 parent 9f1d497 commit 373147a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/static-code-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
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()
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
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()
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
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()
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"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=$(nproc)",
"psalm:ci": "psalm --threads=1",
"psalm:update-baseline": "psalm --threads=$(nproc) --update-baseline"
}
}

0 comments on commit 373147a

Please sign in to comment.