mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Test PHP 8.1 (#14109)
* Test PHP 8.1 Would love to remove the PHP7 versions, but we need to update our minimum version first. * Try mariadb 10.8 * Reduce the number of open connections during testing.
This commit is contained in:
7
.github/workflows/test.yml
vendored
7
.github/workflows/test.yml
vendored
@@ -25,13 +25,18 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
|
-
|
||||||
|
php-version: 8.1
|
||||||
|
name: Unit
|
||||||
|
skip-web-check: 1
|
||||||
|
database: mariadb:10.8
|
||||||
-
|
-
|
||||||
php-version: 8.0
|
php-version: 8.0
|
||||||
name: Unit
|
name: Unit
|
||||||
skip-web-check: 1
|
skip-web-check: 1
|
||||||
database: mariadb:10.5
|
database: mariadb:10.5
|
||||||
-
|
-
|
||||||
php-version: 8.0
|
php-version: 8.1
|
||||||
name: Web
|
name: Web
|
||||||
skip-unit-check: 1
|
skip-unit-check: 1
|
||||||
database: mysql:5.7
|
database: mysql:5.7
|
||||||
|
@@ -35,4 +35,13 @@ abstract class TestCase extends BaseTestCase
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function tearDown(): void
|
||||||
|
{
|
||||||
|
$this->beforeApplicationDestroyed(function () {
|
||||||
|
$this->getConnection()->disconnect();
|
||||||
|
});
|
||||||
|
|
||||||
|
parent::tearDown();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -83,3 +83,5 @@ if (getenv('DBTEST')) {
|
|||||||
|
|
||||||
Config::reload(); // reload the config including database config
|
Config::reload(); // reload the config including database config
|
||||||
\LibreNMS\Util\OS::updateCache(true); // Force update of OS Cache
|
\LibreNMS\Util\OS::updateCache(true); // Force update of OS Cache
|
||||||
|
|
||||||
|
app()->terminate(); // destroy the bootstrap Laravel application
|
||||||
|
Reference in New Issue
Block a user