mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-29 16:00:27 +02:00
Build tweaks
This commit is contained in:
7
.github/workflows/phpstan.yml
vendored
7
.github/workflows/phpstan.yml
vendored
@@ -27,6 +27,7 @@ jobs:
|
||||
with:
|
||||
coverage: "none"
|
||||
php-version: "${{ matrix.php-version }}"
|
||||
extensions: mongodb, redis, amqp
|
||||
|
||||
- name: Get composer cache directory
|
||||
id: composercache
|
||||
@@ -39,8 +40,12 @@ jobs:
|
||||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
|
||||
restore-keys: ${{ runner.os }}-composer-
|
||||
|
||||
- name: Add require for mongodb/mongodb to make tests runnable
|
||||
run: 'composer require ${{ env.COMPOSER_FLAGS }} mongodb/mongodb --dev --no-update'
|
||||
|
||||
- name: "Install latest dependencies"
|
||||
run: "composer update ${{ env.COMPOSER_FLAGS }}"
|
||||
# --ignore-platform-req=php here needed as long as elasticsearch/elasticsearch does not support php 8
|
||||
run: "composer update ${{ env.COMPOSER_FLAGS }} --ignore-platform-req=php"
|
||||
|
||||
- name: Run PHPStan
|
||||
run: composer phpstan
|
||||
|
Reference in New Issue
Block a user