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:
Tony Murray 2022-11-17 03:57:40 -06:00 committed by GitHub
parent cb9e01a030
commit 106d4c4a4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -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'

View File

@ -31,7 +31,7 @@ use LibreNMS\Tests\TestCase;
class SqliteTest extends TestCase
{
private $connection = 'testing_memory';
private $connection = 'testing_persistent';
public function testMigrationsRunWithoutError()
{