Skip to content

Commit 419de9a

Browse files
authored
Allow dev (#70)
1 parent 5937bab commit 419de9a

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,15 @@ _to install dev dependencies:_
4848
args: analyse src/
4949
```
5050
51+
_to allow dev dependencies:_
52+
```diff
53+
uses: docker://oskarstark/phpstan-ga
54+
+ env:
55+
+ ALLOW_DEV: true
56+
with:
57+
args: analyse src/
58+
```
59+
5160
_to skip checking the platform requirements:_
5261
```diff
5362
uses: docker://oskarstark/phpstan-ga

entrypoint.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ fi
2020

2121
COMPOSER_COMMAND="composer install --no-progress $NO_DEV $IGNORE_PLATFORM_REQS"
2222
echo "::group::$COMPOSER_COMMAND"
23+
24+
if [ "$ALLOW_DEV" = "true" ]; then
25+
composer config minimum-stability dev
26+
composer config prefer-stable true
27+
fi
28+
2329
$COMPOSER_COMMAND
2430
echo "::endgroup::"
2531
/composer/vendor/bin/phpstan $*

0 commit comments

Comments
 (0)