Skip to content

Fix multiple paths #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Feb 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ The following configuration options are available:
+ `php_version` The version of PHP to use e.g. `7.4` (default: latest)
+ `php_extensions` Space-separated list of extensions using [php-build][php-build] e.g. `xdebug mbstring` (default: N/A)
+ `command` The command to run e.g. `list` or `worker` (default: analyse)
+ `path` Path(s) with source code to run analysis on (required)
+ `path` Path(s) with source code to run analysis on, space-separated (required)
+ `configuration` Configuration file location
+ `level` Level of rule options - the higher, the stricter
+ `paths_file` Path to a file with a list of paths to run analysis on
Expand Down
7 changes: 6 additions & 1 deletion phpstan-action.bash
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ fi

if [ -n "$ACTION_PATH" ]
then
command_string+=("$ACTION_PATH")
IFS=" "
read -r -a splitIFS <<< "$ACTION_PATH"
for path in "${splitIFS[@]}"
do
command_string+=("$path")
done
fi

if [ -n "$ACTION_CONFIGURATION" ]
Expand Down