Skip to content

Commit

Permalink
chore: ci add mariadb 11.3, change mysql 8.2 to mysql 8.3 (openemr#7273)
Browse files Browse the repository at this point in the history
  • Loading branch information
bradymiller authored Mar 17, 2024
1 parent c04e485 commit eb1682f
Show file tree
Hide file tree
Showing 3 changed files with 120 additions and 4 deletions.
100 changes: 97 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,100 @@ jobs:
build_test_common
if: ${{ success() || failure() }}


build_apache_83_113:
name: PHP 8.3 - Apache - MariaDB 11.3 (short term release)
runs-on: ubuntu-22.04
env:
DOCKER_DIR: apache_83_113
OPENEMR_DIR: /var/www/localhost/htdocs/openemr
CHROMIUM_INSTALL: "apk update; apk add --no-cache chromium chromium-chromedriver; export PANTHER_CHROME_DRIVER_BINARY=/usr/lib/chromium/chromedriver"
steps:
- uses: actions/checkout@v3

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'

- name: Report PHP Version
run: php -v

- name: Install npm package
uses: actions/setup-node@v3
with:
node-version: '20'

- name: Main build
run: |
source ci/ciLibrary.source
composer_github_auth
main_build
- name: CCDA build
run: |
source ci/ciLibrary.source
ccda_build
- name: Dockers environment start
run: |
source ci/ciLibrary.source
dockers_env_start
sleep 60
- name: Install and configure
run: |
source ci/ciLibrary.source
install_configure
- name: Unit testing
run: |
source ci/ciLibrary.source
build_test_unit
if: ${{ success() || failure() }}

- name: E2e testing
run: |
source ci/ciLibrary.source
build_test_e2e
if: ${{ success() || failure() }}

- name: Api testing
run: |
source ci/ciLibrary.source
build_test_api
if: ${{ success() || failure() }}

- name: Fixtures testing
run: |
source ci/ciLibrary.source
build_test_fixtures
if: ${{ success() || failure() }}

- name: Services testing
run: |
source ci/ciLibrary.source
build_test_services
if: ${{ success() || failure() }}

- name: Validators testing
run: |
source ci/ciLibrary.source
build_test_validators
if: ${{ success() || failure() }}

- name: Controllers testing
run: |
source ci/ciLibrary.source
build_test_controllers
if: ${{ success() || failure() }}

- name: Common testing
run: |
source ci/ciLibrary.source
build_test_common
if: ${{ success() || failure() }}

build_apache_83_112:
name: PHP 8.3 - Apache - MariaDB 11.2 (short term release)
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -848,11 +942,11 @@ jobs:
build_test_common
if: ${{ success() || failure() }}

build_apache_83_82:
name: PHP 8.3 - Apache - MySQL 8.2 (short term release)
build_apache_83_83:
name: PHP 8.3 - Apache - MySQL 8.3 (short term release)
runs-on: ubuntu-22.04
env:
DOCKER_DIR: apache_83_82
DOCKER_DIR: apache_83_83
OPENEMR_DIR: /var/www/localhost/htdocs/openemr
CHROMIUM_INSTALL: "apk update; apk add --no-cache chromium chromium-chromedriver; export PANTHER_CHROME_DRIVER_BINARY=/usr/lib/chromium/chromedriver"
steps:
Expand Down
22 changes: 22 additions & 0 deletions ci/apache_83_113/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# docker-compose.yml for travis ci testing
version: '3.1'
services:
mysql:
restart: always
image: mariadb:11.3
command: ['mariadbd','--character-set-server=utf8mb4']
environment:
MYSQL_ROOT_PASSWORD: root
openemr:
restart: always
image: openemr/openemr:flex-3.19
ports:
- 80:80
- 443:443
volumes:
- ../../:/var/www/localhost/htdocs/openemr
environment:
FORCE_NO_BUILD_MODE: "yes"
EMPTY: "yes"
depends_on:
- mysql
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: '3.1'
services:
mysql:
restart: always
image: mysql:8.2
image: mysql:8.3
command: ['mysqld','--character-set-server=utf8mb4','--default-authentication-plugin=mysql_native_password']
environment:
MYSQL_ROOT_PASSWORD: root
Expand Down

0 comments on commit eb1682f

Please sign in to comment.