-
Notifications
You must be signed in to change notification settings - Fork 497
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -446,3 +446,39 @@ jobs: | |
../bin/phpstan analyse -l 8 src tests && \ | ||
php bin/compile && \ | ||
../tmp/phpstan.phar | ||
generate-baseline: | ||
name: "Generate baseline" | ||
|
||
runs-on: "ubuntu-latest" | ||
|
||
strategy: | ||
matrix: | ||
php-version: | ||
- "7.4" | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: "actions/[email protected]" | ||
|
||
- name: "Install PHP" | ||
uses: "shivammathur/[email protected]" | ||
with: | ||
coverage: "none" | ||
php-version: "${{ matrix.php-version }}" | ||
|
||
- name: "Cache dependencies" | ||
uses: "actions/[email protected]" | ||
with: | ||
path: "~/.composer/cache" | ||
key: "php-${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}" | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
ondrejmirtes
Author
Member
|
||
restore-keys: "php-${{ matrix.php-version }}-composer-" | ||
|
||
- name: "Install dependencies" | ||
run: "composer update --no-interaction --no-progress --no-suggest" | ||
|
||
- name: "Generate baseline" | ||
run: | | ||
cp phpstan-baseline.neon phpstan-baseline-orig.neon && \ | ||
vendor/bin/phing phpstan-generate-baseline && \ | ||
diff phpstan-baseline.neon phpstan-baseline-orig.neon |
this should be
composer.json
instead of**/composer.json
.**/composer.json
will hash on all additionalcomposer.json
files in thevendor
directory on save.