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:
parent
cb9e01a030
commit
106d4c4a4a
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue