mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-06 05:07:36 +02:00
Allow psr/log 3 (#1589)
Signed-off-by: Alexander M. Turek <me@derrabus.de>
This commit is contained in:
committed by
GitHub
parent
3962ebfe20
commit
0f79359548
17
.github/workflows/continuous-integration.yml
vendored
17
.github/workflows/continuous-integration.yml
vendored
@@ -51,10 +51,6 @@ jobs:
|
||||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
|
||||
restore-keys: ${{ runner.os }}-composer-
|
||||
|
||||
- name: Remove elasticsearch/elasticsearch on PHP 8
|
||||
if: "startsWith(matrix.php-version, '8.')"
|
||||
run: 'composer remove elasticsearch/elasticsearch --dev --no-update'
|
||||
|
||||
- name: Add require for mongodb/mongodb to make tests runnable
|
||||
run: 'composer require ${{ env.COMPOSER_FLAGS }} mongodb/mongodb --dev --no-update'
|
||||
|
||||
@@ -62,10 +58,6 @@ jobs:
|
||||
if: "contains(matrix.dependencies, 'lowest')"
|
||||
run: "echo \"COMPOSER_FLAGS=$COMPOSER_FLAGS --prefer-lowest\" >> $GITHUB_ENV"
|
||||
|
||||
- name: "Ensure psr/log v2 is installed"
|
||||
if: "contains(matrix.dependencies, 'highest') && matrix.php-version >= '8.0'"
|
||||
run: composer require -W psr/log:^2
|
||||
|
||||
- name: "Install latest dependencies"
|
||||
run: |
|
||||
composer update ${{ env.COMPOSER_FLAGS }}
|
||||
@@ -73,9 +65,10 @@ jobs:
|
||||
- name: "Run tests"
|
||||
run: "composer exec phpunit -- --verbose"
|
||||
|
||||
- name: "Run tests with rollbar"
|
||||
- name: "Run tests with psr/log 3"
|
||||
if: "contains(matrix.dependencies, 'highest') && matrix.php-version >= '8.0'"
|
||||
run: |
|
||||
composer require psr/log:'^1.1|^2' --no-update
|
||||
composer require rollbar/rollbar:^1.3 --no-update
|
||||
composer remove --no-update --dev graylog2/gelf-php ruflin/elastica elasticsearch/elasticsearch rollbar/rollbar
|
||||
composer require --no-update psr/log:^3
|
||||
composer update -W ${{ env.COMPOSER_FLAGS }}
|
||||
composer exec phpunit -- --verbose --filter Rollbar
|
||||
composer exec phpunit -- --verbose
|
||||
|
@@ -14,7 +14,7 @@
|
||||
],
|
||||
"require": {
|
||||
"php": ">=7.2",
|
||||
"psr/log": "^1.0.1 || ^2.0"
|
||||
"psr/log": "^1.0.1 || ^2.0 || ^3.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"aws/aws-sdk-php": "^2.4.9 || ^3.0",
|
||||
@@ -27,6 +27,7 @@
|
||||
"phpspec/prophecy": "^1.6.1",
|
||||
"phpunit/phpunit": "^8.5",
|
||||
"predis/predis": "^1.1",
|
||||
"rollbar/rollbar": "^1.3",
|
||||
"ruflin/elastica": ">=0.90@dev",
|
||||
"swiftmailer/swiftmailer": "^5.3|^6.0",
|
||||
"phpstan/phpstan": "^0.12.91"
|
||||
@@ -55,7 +56,7 @@
|
||||
"psr-4": {"Monolog\\": "tests/Monolog"}
|
||||
},
|
||||
"provide": {
|
||||
"psr/log-implementation": "1.0.0 || 2.0.0"
|
||||
"psr/log-implementation": "1.0.0 || 2.0.0 || 3.0.0"
|
||||
},
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
|
Reference in New Issue
Block a user