You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This directory contains a GitHub Actions workflow to test the OpenEMR 7.0.4 Docker image.
3
+
## Workflow: Production Docker Test (test-prod.yml)
4
4
5
-
## Workflow: OpenEMR Docker Test
5
+
The `test-prod.yml` workflow verifies that the production OpenEMR Docker images can be built correctly and function with a database connection. These images have the OpenEMR code embedded within them and are identified by version numbers (e.g., 7.0.4).
6
6
7
-
The `build-test.yml`workflow verifies that the OpenEMR Docker image can be built correctly and functions with a database connection. It performs the following steps:
7
+
The workflow performs the following steps:
8
8
9
-
1. Builds the OpenEMR 7.0.4 Docker image
9
+
1. Builds OpenEMR Docker images defined in docker/openemr for numbered versions (e.g., 6.1.0, 7.0.4)
10
10
2. Sets up a test environment using Docker Compose with:
11
11
- MariaDB 11.4 database
12
12
- OpenEMR container connected to the database
13
13
3. Verifies that the web server is responding correctly
14
+
4. Runs the OpenEMR installation process
15
+
5. Executes multiple test suites including unit, fixtures, services, validators, and controllers tests
14
16
15
-
### Triggers
17
+
### Triggers for Production Tests
16
18
17
19
The workflow runs automatically when:
18
-
- Files in the `docker/openemr/7.0.4/` directory are changed on the main branch
19
-
- A pull request targeting the main branch changes files in the `docker/openemr/7.0.4/` directory
20
+
- Files in the `docker/openemr/[0-9]*.[0-9]*.[0-9]/**` directory are changed on the main branch
21
+
- A pull request targeting the main branch changes files in the numbered version directories
20
22
21
-
It can also be run manually through the GitHub Actions tab using workflow_dispatch.
23
+
## Workflow: Flex Docker Test (test-flex.yml)
22
24
23
-
## Running the Test Manually
25
+
The `test-flex.yml` workflow tests the development-oriented "flex" Docker images. Unlike production images, flex builds don't embed the OpenEMR code within the image - they're designed for development purposes where the code is mounted separately.
24
26
25
-
To run the test manually:
26
-
1. Go to the GitHub Actions tab in the repository
27
-
2. Select "OpenEMR Docker Test" from the workflows list
28
-
3. Click "Run workflow"
29
-
4. Choose the branch to run the test on
30
-
5. Click "Run workflow"
27
+
The workflow performs the following steps:
31
28
32
-
For debugging purposes, you can enable the tmate debugging option when running the workflow manually. This will provide an SSH connection to the GitHub Actions runner for interactive debugging.
29
+
1. Checks out both the openemr-devops repository and the OpenEMR code repository
30
+
2. Builds the flex Docker images defined in docker/openemr
31
+
3. Sets up a test environment using Docker Compose with:
32
+
- MariaDB database
33
+
- OpenEMR container with mounted code
34
+
4. Verifies that the web server is responding correctly
33
35
34
-
##Adding Tests for Other OpenEMR Versions
36
+
### Triggers for Flex Tests
35
37
36
-
To add tests for other OpenEMR versions:
37
-
1. Copy the existing workflow and update the version number
38
-
2. Update the paths in the workflow triggers
39
-
3. Update the image tags and other version-specific information
38
+
The workflow runs automatically when:
39
+
- Files in the `docker/openemr/**` directory are changed on the main branch
40
+
- A pull request targeting the main branch changes files in the docker/openemr directory
0 commit comments