mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix sqlite test (#14642)
* Fix sqlite test * Add sqlite database to ci Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
This commit is contained in:
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
@ -104,7 +104,7 @@ jobs:
|
||||
name: Install packages
|
||||
run: |
|
||||
sudo apt-get -qq update
|
||||
sudo apt-get install -y fping python3-pip python3-setuptools snmp
|
||||
sudo apt-get install -y fping python3-pip python3-setuptools snmp sqlite3
|
||||
-
|
||||
name: Pip install
|
||||
run: |
|
||||
@ -165,6 +165,9 @@ jobs:
|
||||
PORT: ${{ job.services.database.ports[3306] }}
|
||||
run: |
|
||||
mysql -h"127.0.0.1" -P"$PORT" --user=librenms --password=librenms -e 'ALTER DATABASE librenms_phpunit_78hunjuybybh CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;'
|
||||
-
|
||||
name: Setup SQLite
|
||||
run: sqlite3 storage/testing.sqlite ""
|
||||
-
|
||||
name: Artisan serve
|
||||
if: matrix.skip-web-check != '1'
|
||||
|
@ -31,7 +31,7 @@ use LibreNMS\Tests\TestCase;
|
||||
|
||||
class SqliteTest extends TestCase
|
||||
{
|
||||
private $connection = 'testing_memory';
|
||||
private $connection = 'testing_persistent';
|
||||
|
||||
public function testMigrationsRunWithoutError()
|
||||
{
|
||||
|
Reference in New Issue
Block a user