This directory contains a GitHub Actions workflow to test the OpenEMR 7.0.4 Docker image.
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:
- Builds the OpenEMR 7.0.4 Docker image
- Sets up a test environment using Docker Compose with:
- MariaDB 11.4 database
- OpenEMR container connected to the database
- Verifies that the web server is responding correctly
The workflow runs automatically when:
- Files in the
docker/openemr/7.0.4/
directory are changed on the main branch - A pull request targeting the main branch changes files in the
docker/openemr/7.0.4/
directory
It can also be run manually through the GitHub Actions tab using workflow_dispatch.
To run the test manually:
- Go to the GitHub Actions tab in the repository
- Select "OpenEMR Docker Test" from the workflows list
- Click "Run workflow"
- Choose the branch to run the test on
- Click "Run workflow"
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.
To add tests for other OpenEMR versions:
- Copy the existing workflow and update the version number
- Update the paths in the workflow triggers
- Update the image tags and other version-specific information