Skip to content

Commit

Permalink
updated ci and insane dev env for php 8.2 and nodejs 16 (openemr#4778)
Browse files Browse the repository at this point in the history
updated ci and insane dev env for php 8.2 and nodejs 16 (alpine 3.15 will be using nodejs 16 which will be planning to release docker 6.1.0 with)
  • Loading branch information
bradymiller authored Dec 1, 2021
1 parent cb6ffee commit ccc87a1
Show file tree
Hide file tree
Showing 12 changed files with 6,034 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/styling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ 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
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
- name: Install npm package
uses: actions/setup-node@v1
with:
node-version: '12'
node-version: '16'

- name: npm install
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/syntax.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1']
php: ['7.4', '8.0', '8.1', '8.2']
name: PHP ${{ matrix.php }}
steps:
- uses: actions/checkout@v2
Expand Down
114 changes: 103 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Install npm package
uses: actions/setup-node@v1
with:
node-version: '14'
node-version: '16'

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

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

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

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

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

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

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

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

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

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

- 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_nginx_82:
name: PHP 8.2 - Nginx - MariaDB 10.6
runs-on: ubuntu-20.04
env:
DOCKER_DIR: nginx_82
OPENEMR_DIR: /usr/share/nginx/html/openemr
CHROMIUM_INSTALL: "apt-get update; apt-get install -y chromium-driver; export PANTHER_CHROME_DRIVER_BINARY=/usr/bin/chromedriver"
steps:
- uses: actions/checkout@v2

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

- name: Report PHP Version
run: php -v

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

- name: Dockers environment start
run: |
Expand Down
33 changes: 33 additions & 0 deletions ci/nginx_82/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# docker-compose.yml for travis ci testing
version: '3.1'
services:
mysql:
restart: always
image: mariadb:10.6
command: ['mysqld','--character-set-server=utf8mb4']
environment:
MYSQL_ROOT_PASSWORD: root
openemr:
restart: always
image: openemr/dev-php-fpm:8.2
environment:
OPENEMR_BASE_URL_API: "https://nginx"
OPENEMR_BASE_URL_E2E: "http://nginx"
volumes:
- ../../:/usr/share/nginx/html/openemr
- ./php.ini:/usr/local/etc/php/php.ini:ro
depends_on:
- mysql
nginx:
restart: always
image: openemr/dev-nginx
ports:
- 80:80
- 443:443
volumes:
- ../../:/usr/share/nginx/html/openemr
- ../nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ../nginx/dummy-cert:/etc/nginx/dummy-cert:ro
- ../nginx/dummy-key:/etc/nginx/dummy-key:ro
depends_on:
- openemr
Loading

0 comments on commit ccc87a1

Please sign in to comment.