Skip to content

Commit 14cb03b

Browse files
author
Greg Bowler
committed
wip: mount phpstan
1 parent ee456ac commit 14cb03b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

phpstan-action.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ echo "Docker tag: $docker_tag" >> output.log 2>&1
66

77
if [ "$ACTION_VERSION" = "composer" ]
88
then
9-
VENDOR_BIN="vendor/bin/phpstan.phar"
9+
VENDOR_BIN="vendor/bin/phpstan"
1010
if test -f "$VENDOR_BIN"
1111
then
1212
ACTION_PHPSTAN_PATH="$VENDOR_BIN"
@@ -23,7 +23,6 @@ then
2323
curl --silent -H "User-agent: cURL (https://github.com/php-actions)" -L "$phar_url" > "$phar_path"
2424
else
2525
phar_path="${GITHUB_WORKSPACE}/$ACTION_PHPSTAN_PATH"
26-
echo "PHAR path: $phar_path"
2726
fi
2827

2928
chmod +x "$phar_path"
@@ -107,6 +106,7 @@ echo "Command: " "${command_string[@]}" >> output.log 2>&1
107106

108107
docker run --rm \
109108
--volume "$phar_path":/usr/local/bin/phpstan \
109+
--volume "${GITHUB_WORKSPACE}/vendor/phpstan:/usr/local/phpstan" \
110110
--volume "${GITHUB_WORKSPACE}":/app \
111111
--workdir /app \
112112
--env-file ./DOCKER_ENV \

0 commit comments

Comments
 (0)