Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
684 changes: 570 additions & 114 deletions .github/workflows/test.yml

Large diffs are not rendered by default.

12 changes: 9 additions & 3 deletions apis/dispatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
* @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
*/

// below brings in autoloader
require_once("./../_rest_config.php");

use OpenEMR\Common\Auth\UuidUserAccount;
use OpenEMR\Common\Csrf\CsrfUtils;
Expand All @@ -28,14 +26,20 @@
use OpenEMR\Events\RestApiExtend\RestApiCreateEvent;
use OpenEMR\Telemetry\TelemetryService;
use Psr\Http\Message\ResponseInterface;
use OpenEMR\Tools\Coverage\CoverageHelper;


// below brings in autoloader
require_once("./../_rest_config.php");
$logger = new SystemLogger();
CoverageHelper::setupCodeCoverageIfEnabled();

$gbl = RestConfig::GetInstance();
$restRequest = new HttpRestRequest($gbl, $_SERVER);
$routes = array();

// Parse needed information from Redirect or REQUEST_URI
$resource = $gbl::getRequestEndPoint();
$logger = new SystemLogger();
$logger->debug("dispatch.php requested", ["resource" => $resource, "method" => $_SERVER['REQUEST_METHOD']]);

$skipApiAuth = false;
Expand Down Expand Up @@ -422,3 +426,5 @@
} catch (\Exception $e) {
$logger->error("dispatch.php telemetry error", ['exception' => $e]);
}


16 changes: 14 additions & 2 deletions ci/apache_82_114/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
# docker-compose.yml for travis ci testing
services:
mysql:
restart: always
image: mariadb:11.4
command: ['mariadbd','--character-set-server=utf8mb4']
environment:
MYSQL_ROOT_PASSWORD: root
healthcheck:
test:
- CMD
- /usr/local/bin/healthcheck.sh
- --su-mysql
- --connect
- --innodb_initialized
start_period: 1m
start_interval: 10s
interval: 1m
timeout: 5s
retries: 3
openemr:
restart: always
image: openemr/openemr:flex-3.18
Expand All @@ -18,4 +29,5 @@ services:
FORCE_NO_BUILD_MODE: "yes"
EMPTY: "yes"
depends_on:
- mysql
mysql:
condition: service_healthy
16 changes: 14 additions & 2 deletions ci/apache_83_1011/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
# docker-compose.yml for travis ci testing
services:
mysql:
restart: always
image: mariadb:10.11
command: ['mysqld','--character-set-server=utf8mb4']
environment:
MYSQL_ROOT_PASSWORD: root
healthcheck:
test:
- CMD
- /usr/local/bin/healthcheck.sh
- --su-mysql
- --connect
- --innodb_initialized
start_period: 1m
start_interval: 10s
interval: 1m
timeout: 5s
retries: 3
openemr:
restart: always
image: openemr/openemr:flex-3.20
Expand All @@ -18,4 +29,5 @@ services:
FORCE_NO_BUILD_MODE: "yes"
EMPTY: "yes"
depends_on:
- mysql
mysql:
condition: service_healthy
16 changes: 14 additions & 2 deletions ci/apache_83_105/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
# docker-compose.yml for travis ci testing
services:
mysql:
restart: always
image: mariadb:10.5
command: ['mysqld','--character-set-server=utf8mb4']
environment:
MYSQL_ROOT_PASSWORD: root
healthcheck:
test:
- CMD
- /usr/local/bin/healthcheck.sh
- --su-mysql
- --connect
- --innodb_initialized
start_period: 1m
start_interval: 10s
interval: 1m
timeout: 5s
retries: 3
openemr:
restart: always
image: openemr/openemr:flex-3.20
Expand All @@ -18,4 +29,5 @@ services:
FORCE_NO_BUILD_MODE: "yes"
EMPTY: "yes"
depends_on:
- mysql
mysql:
condition: service_healthy
16 changes: 14 additions & 2 deletions ci/apache_83_106/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
# docker-compose.yml for travis ci testing
services:
mysql:
restart: always
image: mariadb:10.6
command: ['mysqld','--character-set-server=utf8mb4']
environment:
MYSQL_ROOT_PASSWORD: root
healthcheck:
test:
- CMD
- /usr/local/bin/healthcheck.sh
- --su-mysql
- --connect
- --innodb_initialized
start_period: 1m
start_interval: 10s
interval: 1m
timeout: 5s
retries: 3
openemr:
restart: always
image: openemr/openemr:flex-3.20
Expand All @@ -18,4 +29,5 @@ services:
FORCE_NO_BUILD_MODE: "yes"
EMPTY: "yes"
depends_on:
- mysql
mysql:
condition: service_healthy
16 changes: 14 additions & 2 deletions ci/apache_83_114/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
# docker-compose.yml for travis ci testing
services:
mysql:
restart: always
image: mariadb:11.4
command: ['mariadbd','--character-set-server=utf8mb4']
environment:
MYSQL_ROOT_PASSWORD: root
healthcheck:
test:
- CMD
- /usr/local/bin/healthcheck.sh
- --su-mysql
- --connect
- --innodb_initialized
start_period: 1m
start_interval: 10s
interval: 1m
timeout: 5s
retries: 3
openemr:
restart: always
image: openemr/openemr:flex-3.20
Expand All @@ -18,4 +29,5 @@ services:
FORCE_NO_BUILD_MODE: "yes"
EMPTY: "yes"
depends_on:
- mysql
mysql:
condition: service_healthy
16 changes: 14 additions & 2 deletions ci/apache_83_116/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
# docker-compose.yml for travis ci testing
services:
mysql:
restart: always
image: mariadb:11.6
command: ['mariadbd','--character-set-server=utf8mb4']
environment:
MYSQL_ROOT_PASSWORD: root
healthcheck:
test:
- CMD
- /usr/local/bin/healthcheck.sh
- --su-mysql
- --connect
- --innodb_initialized
start_period: 1m
start_interval: 10s
interval: 1m
timeout: 5s
retries: 3
openemr:
restart: always
image: openemr/openemr:flex-3.20
Expand All @@ -18,4 +29,5 @@ services:
FORCE_NO_BUILD_MODE: "yes"
EMPTY: "yes"
depends_on:
- mysql
mysql:
condition: service_healthy
1 change: 0 additions & 1 deletion ci/apache_83_57/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# docker-compose.yml for travis ci testing
services:
mysql:
restart: always
Expand Down
1 change: 0 additions & 1 deletion ci/apache_83_80/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# docker-compose.yml for travis ci testing
services:
mysql:
restart: always
Expand Down
1 change: 0 additions & 1 deletion ci/apache_83_84/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# docker-compose.yml for travis ci testing
services:
mysql:
restart: always
Expand Down
Loading
Loading