Skip to content

Commit

Permalink
updated automated testing environments (openemr#4208)
Browse files Browse the repository at this point in the history
  • Loading branch information
bradymiller committed Jan 31, 2021
1 parent 73794cd commit 8407273
Show file tree
Hide file tree
Showing 9 changed files with 257 additions and 29 deletions.
230 changes: 207 additions & 23 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ jobs:
build_test_common
if: ${{ success() || failure() }}

build_apache_73_104:
name: PHP 7.3 - Apache - MariaDB 10.4
build_apache_74_105:
name: PHP 7.4 - Apache - MariaDB 10.5
runs-on: ubuntu-20.04
env:
DOCKER_DIR: apache_73_104
DOCKER_DIR: apache_74_105
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 All @@ -121,7 +121,99 @@ jobs:
- name: Install npm package
uses: actions/setup-node@v1
with:
node-version: '12'
node-version: '14'

- name: Dockers environment start
run: |
source ci/ciLibrary.source
dockers_env_start
- name: Main build
run: |
source ci/ciLibrary.source
composer_github_auth
main_build
- name: CCDA build
run: |
source ci/ciLibrary.source
ccda_build
- 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_80_105:
name: PHP 8.0 - Apache - MariaDB 10.5
runs-on: ubuntu-20.04
env:
DOCKER_DIR: apache_80_105
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@v2

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

- name: Report PHP Version
run: php -v

- name: Install npm package
uses: actions/setup-node@v1
with:
node-version: '14'

- name: Dockers environment start
run: |
Expand Down Expand Up @@ -192,11 +284,11 @@ jobs:
build_test_common
if: ${{ success() || failure() }}

build_apache_73_103:
name: PHP 7.3 - Apache - MariaDB 10.3
build_apache_74_104:
name: PHP 7.4 - Apache - MariaDB 10.4
runs-on: ubuntu-20.04
env:
DOCKER_DIR: apache_73_103
DOCKER_DIR: apache_74_104
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 All @@ -213,7 +305,7 @@ jobs:
- name: Install npm package
uses: actions/setup-node@v1
with:
node-version: '12'
node-version: '14'

- name: Dockers environment start
run: |
Expand Down Expand Up @@ -284,11 +376,11 @@ jobs:
build_test_common
if: ${{ success() || failure() }}

build_apache_73_102:
name: PHP 7.3 - Apache - MariaDB 10.2
build_apache_74_103:
name: PHP 7.4 - Apache - MariaDB 10.3
runs-on: ubuntu-20.04
env:
DOCKER_DIR: apache_73_102
DOCKER_DIR: apache_74_103
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 All @@ -305,7 +397,7 @@ jobs:
- name: Install npm package
uses: actions/setup-node@v1
with:
node-version: '12'
node-version: '14'

- name: Dockers environment start
run: |
Expand Down Expand Up @@ -376,11 +468,11 @@ jobs:
build_test_common
if: ${{ success() || failure() }}

build_apache_73_8:
name: PHP 7.3 - Apache - MySQL 8
build_apache_74_102:
name: PHP 7.4 - Apache - MariaDB 10.2
runs-on: ubuntu-20.04
env:
DOCKER_DIR: apache_73_8
DOCKER_DIR: apache_74_102
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 All @@ -397,7 +489,7 @@ jobs:
- name: Install npm package
uses: actions/setup-node@v1
with:
node-version: '12'
node-version: '14'

- name: Dockers environment start
run: |
Expand Down Expand Up @@ -468,11 +560,11 @@ jobs:
build_test_common
if: ${{ success() || failure() }}

build_apache_73_57:
name: PHP 7.3 - Apache - MySQL 5.7
build_apache_74_8:
name: PHP 7.4 - Apache - MySQL 8
runs-on: ubuntu-20.04
env:
DOCKER_DIR: apache_73_57
DOCKER_DIR: apache_74_8
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 All @@ -489,7 +581,99 @@ jobs:
- name: Install npm package
uses: actions/setup-node@v1
with:
node-version: '12'
node-version: '14'

- name: Dockers environment start
run: |
source ci/ciLibrary.source
dockers_env_start
- name: Main build
run: |
source ci/ciLibrary.source
composer_github_auth
main_build
- name: CCDA build
run: |
source ci/ciLibrary.source
ccda_build
- 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_74_57:
name: PHP 7.4 - Apache - MySQL 5.7
runs-on: ubuntu-20.04
env:
DOCKER_DIR: apache_74_57
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@v2

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

- name: Report PHP Version
run: php -v

- name: Install npm package
uses: actions/setup-node@v1
with:
node-version: '14'

- name: Dockers environment start
run: |
Expand Down Expand Up @@ -672,7 +856,7 @@ jobs:
- name: Install npm package
uses: actions/setup-node@v1
with:
node-version: '12'
node-version: '14'

- name: Dockers environment start
run: |
Expand Down Expand Up @@ -756,15 +940,15 @@ jobs:
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
php-version: '8.0'

- name: Report PHP Version
run: php -v

- name: Install npm package
uses: actions/setup-node@v1
with:
node-version: '12'
node-version: '14'

- name: Dockers environment start
run: |
Expand Down
2 changes: 1 addition & 1 deletion ci/apache_73_105/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
MYSQL_ROOT_PASSWORD: root
openemr:
restart: always
image: openemr/openemr:flex
image: openemr/openemr:flex-3.12
ports:
- 80:80
- 443:443
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
MYSQL_ROOT_PASSWORD: root
openemr:
restart: always
image: openemr/openemr:flex
image: openemr/openemr:flex-3.13
ports:
- 80:80
- 443:443
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
MYSQL_ROOT_PASSWORD: root
openemr:
restart: always
image: openemr/openemr:flex
image: openemr/openemr:flex-3.13
ports:
- 80:80
- 443:443
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
MYSQL_ROOT_PASSWORD: root
openemr:
restart: always
image: openemr/openemr:flex
image: openemr/openemr:flex-3.13
ports:
- 80:80
- 443:443
Expand Down
22 changes: 22 additions & 0 deletions ci/apache_74_105/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:10.5
command: ['mysqld','--character-set-server=utf8mb4']
environment:
MYSQL_ROOT_PASSWORD: root
openemr:
restart: always
image: openemr/openemr:flex-3.13
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 @@ -9,7 +9,7 @@ services:
MYSQL_ROOT_PASSWORD: root
openemr:
restart: always
image: openemr/openemr:flex
image: openemr/openemr:flex-3.13
ports:
- 80:80
- 443:443
Expand Down
Loading

0 comments on commit 8407273

Please sign in to comment.