diff --git a/.github/workflows/matomo-tests.yml b/.github/workflows/matomo-tests.yml index c3060aa..af079ea 100644 --- a/.github/workflows/matomo-tests.yml +++ b/.github/workflows/matomo-tests.yml @@ -1,7 +1,7 @@ # Action for running tests # This file has been automatically created. # To recreate it you can run this command -# ./console generate:test-action --plugin="LogViewer" --php-versions="7.2,8.1" +# ./console generate:test-action --plugin="LogViewer" --php-versions="7.2,8.2" --schedule-cron="5 3 * * 6" name: Plugin LogViewer Tests @@ -12,6 +12,8 @@ on: branches: - '**.x-dev' workflow_dispatch: + schedule: + - cron: "5 3 * * 6" permissions: actions: read @@ -35,7 +37,7 @@ jobs: strategy: fail-fast: false matrix: - php: [ '7.2', '8.1' ] + php: [ '7.2', '8.2' ] target: ['minimum_required_matomo', 'maximum_supported_matomo'] steps: - uses: actions/checkout@v3 diff --git a/Log/Query.php b/Log/Query.php index 7f8959f..f39bebd 100644 --- a/Log/Query.php +++ b/Log/Query.php @@ -10,6 +10,8 @@ class Query { + protected $query; + public function __construct($query) { $this->query = $query; diff --git a/Log/Reader/Database.php b/Log/Reader/Database.php index b90a5a6..1ca9b9d 100644 --- a/Log/Reader/Database.php +++ b/Log/Reader/Database.php @@ -18,6 +18,7 @@ class Database implements Reader private $lines = array(); private $table; private $lowestIdLogMessageFromPreviousRun; + private $db; public function __construct() { diff --git a/README.md b/README.md index 20b0b9d..52bcb95 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Matomo LogViewer Plugin -[![Build Status](https://travis-ci.com/matomo-org/plugin-LogViewer.svg?branch=4.x-dev)](https://travis-ci.com/matomo-org/plugin-LogViewer) +[![Build Status](https://github.com/matomo-org/plugin-LogViewer/actions/workflows/matomo-tests.yml/badge.svg?branch=4.x-dev)](https://github.com/matomo-org/plugin-LogViewer/actions/workflows/matomo-tests.yml) ## Description