Skip to content

Commit

Permalink
Merge branch 'release/v2.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
xarem committed Mar 10, 2024
2 parents 649e7b7 + a0ae848 commit 677ed74
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ jobs:
matrix:
operating-system: [ ubuntu-latest ]
php: [ '8.1', '8.2' ]
symfony: ['6.3.*']
symfony: [ '6.3.*', '6.4.*', '7.0.*' ]
exclude:
- php: '8.1'
symfony: '7.0.*'

steps:
- uses: actions/checkout@master
Expand All @@ -32,11 +35,12 @@ jobs:
uses: php-actions/phpunit@v3
env:
XDEBUG_MODE: coverage
ACTION_PHPUNIT_PATH: ./vendor/bin/phpunit
ACTION_PHPUNIT_PATH: ./vendor/bin/simple-phpunit
with:
configuration: phpunit.xml.dist
php_extensions: xdebug
args: tests --coverage-clover ./coverage.xml
version: 9

- name: Upload to Codecov
uses: codecov/codecov-action@v2
Expand Down
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,23 @@
],
"require": {
"php": ">=8.1",
"symfony/framework-bundle": "^6.3",
"symfony/serializer": "^6.3"
"symfony/framework-bundle": "^6.3|^7.0",
"symfony/serializer": "^6.3|^7.0"
},
"require-dev": {
"nyholm/symfony-bundle-test": "^2.0",
"nyholm/symfony-bundle-test": "^3.0",
"zenstruck/console-test": "^v1.1.0",
"whatwedo/php-coding-standard": "^1.0",
"phpstan/phpstan": "^1.7",
"phpunit/phpunit": "^9.5",
"symfony/browser-kit": "^6.3",
"symfony/css-selector": "^6.3",
"symfony/phpunit-bridge": "^6.3",
"symfony/browser-kit": "^6.3|^7.0",
"symfony/css-selector": "^6.3|^7.0",
"symfony/phpunit-bridge": "^6.3|^7.0",
"doctrine/doctrine-bundle": "^2.7",
"doctrine/doctrine-migrations-bundle": "^3.2",
"doctrine/orm": "^2.14",
"symfony/twig-bundle": "^6.3",
"symfony/messenger": "^6.3",
"symfony/twig-bundle": "^6.3|^7.0",
"symfony/messenger": "^6.3|^7.0",
"symfony/mercure-bundle": "^0.3"
},
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion src/DependencyInjection/whatwedoMonitorExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function configureMonitoring(ContainerBuilder $container, array $config)
$container->findDefinition(QueuedMessages::class)
->setArgument(0, $config['monitoring']['metric']['messenger']['queued_messages']['warning_threshold'] ?? 5)
->setArgument(1, $config['monitoring']['metric']['messenger']['queued_messages']['critical_threshold'] ?? 10);
if (!(isset($config['endpoint']['command']['enabled'])
if (! (isset($config['endpoint']['command']['enabled'])
&& ! $config['endpoint']['command']['enabled'])) {
$container->findDefinition(CheckCommand::class)
->setArgument(0, $config['endpoint']['command']['exit_code']['warning'] ?? 1)
Expand Down
2 changes: 1 addition & 1 deletion src/Manager/MonitoringManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function run(): void
$attribute->run();
$wasSuccessful = $this->wasSuccessful($attribute);
$wasWarning = $this->wasWarning($attribute);
if (!$wasSuccessful && !$wasWarning) {
if (! $wasSuccessful && ! $wasWarning) {
$this->isSuccessful = false;
}
if ($wasWarning) {
Expand Down
1 change: 0 additions & 1 deletion tests/Monitoring/Metric/Messenger/QueuedMessages.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

use Symfony\Component\DependencyInjection\ServiceLocator;
use whatwedo\MonitorBundle\Enums\MetricStateEnum;
use whatwedo\MonitorBundle\Monitoring\Metric\Messenger\QueuedMessages;
use whatwedo\MonitorBundle\Tests\Monitoring\AbstractMonitoring;
use whatwedo\MonitorBundle\Tests\Monitoring\Metric\Messenger\Transport\MockTransport;
use whatwedo\MonitorBundle\Tests\UseTestKernelTrait;
Expand Down
1 change: 0 additions & 1 deletion tests/Monitoring/Sensor/Database/DoctrineDbal.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

use Doctrine\Bundle\DoctrineBundle\DoctrineBundle;
use Nyholm\BundleTest\TestKernel;
use whatwedo\MonitorBundle\Monitoring\Sensor\Database\DoctrineDbal;
use whatwedo\MonitorBundle\Tests\Monitoring\AbstractMonitoring;
use whatwedo\MonitorBundle\Tests\UseTestKernelTrait;

Expand Down
1 change: 0 additions & 1 deletion tests/Monitoring/Sensor/Database/DoctrineMigrations.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Output\NullOutput;
use whatwedo\MonitorBundle\Manager\MonitoringManager;
use whatwedo\MonitorBundle\Monitoring\Sensor\Database\DoctrineMigrations;
use whatwedo\MonitorBundle\Tests\Monitoring\AbstractMonitoring;
use whatwedo\MonitorBundle\Tests\Monitoring\Sensor\Database\Migrations\Version1;
use whatwedo\MonitorBundle\Tests\UseTestKernelTrait;
Expand Down
1 change: 0 additions & 1 deletion tests/Monitoring/Sensor/Service/Mercure.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
use Symfony\Component\Mercure\Exception\RuntimeException;
use Symfony\Component\Mercure\HubInterface;
use whatwedo\MonitorBundle\Enums\SensorStateEnum;
use whatwedo\MonitorBundle\Monitoring\Sensor\Service\Mercure;
use whatwedo\MonitorBundle\Tests\Monitoring\AbstractMonitoring;
use whatwedo\MonitorBundle\Tests\UseTestKernelTrait;

Expand Down

0 comments on commit 677ed74

Please sign in to comment.