-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pre-run ci script for regenerating static analysis docblocks prio…
…r to running psalm
- Loading branch information
matt
committed
Feb 25, 2024
1 parent
61b33e1
commit 8259d48
Showing
2 changed files
with
16 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Regenerate docblocks on test/StaticAnalysis files so psalm will pick up any breakages | ||
|
||
WORKDIR=$2 | ||
JOB=$3 | ||
COMMAND=$(echo "${JOB}" | jq -r '.command') | ||
if [[ ! ${COMMAND} =~ psalm ]];then | ||
exit 0 | ||
fi | ||
|
||
cd "$WORKDIR" | ||
vendor/bin/laminas --container test/container.php form:psalm-type test/StaticAnalysis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters