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
## Workflow: Production Docker Test (test-prod.yml)
3
+
## Unified Docker Test Workflow
4
4
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).
5
+
The Docker test workflow combines both production and flex image testing into a single workflow file.
6
6
7
-
The workflow performs the following steps:
7
+
### Production Docker Tests
8
+
9
+
This part of the 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).
10
+
11
+
The workflow performs the following steps for production images:
8
12
9
13
1. Builds OpenEMR Docker images defined in docker/openemr for numbered versions (e.g., 6.1.0, 7.0.4)
10
14
2. Sets up a test environment using Docker Compose with:
@@ -14,17 +18,17 @@ The workflow performs the following steps:
14
18
4. Runs the OpenEMR installation process
15
19
5. Executes multiple test suites including unit, fixtures, services, validators, and controllers tests
16
20
17
-
### Triggers for Production Tests
21
+
####Triggers for Production Tests
18
22
19
-
The workflow runs automatically when:
23
+
The production tests run automatically when:
20
24
- Files in the `docker/openemr/[0-9]*.[0-9]*.[0-9]/**` directory are changed on the main branch
21
25
- A pull request targeting the main branch changes files in the numbered version directories
22
26
23
-
##Workflow: Flex Docker Test (test-flex.yml)
27
+
### Flex Docker Tests
24
28
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.
29
+
This part of the 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.
26
30
27
-
The workflow performs the following steps:
31
+
The workflow performs the following steps for flex images:
28
32
29
33
1. Checks out both the openemr-devops repository and the OpenEMR code repository
30
34
2. Builds the flex Docker images defined in docker/openemr
@@ -33,8 +37,8 @@ The workflow performs the following steps:
33
37
- OpenEMR container with mounted code
34
38
4. Verifies that the web server is responding correctly
35
39
36
-
### Triggers for Flex Tests
40
+
####Triggers for Flex Tests
37
41
38
-
The workflow runs automatically when:
42
+
The flex tests run automatically when:
39
43
- Files in the `docker/openemr/**` directory are changed on the main branch
40
44
- A pull request targeting the main branch changes files in the docker/openemr directory
0 commit comments