Skip to content

Commit

Permalink
chore: packages update and min php version 8.1 (openemr#6867)
Browse files Browse the repository at this point in the history
* chore: packages update and min php version 8.1

* try using forAsymmetricSigner instead of forUnsecuredSigner (failed)

* revert lcobucci/jwt package back to 4.2.1

* phpunit 10 refactors

* fixed swagger
  • Loading branch information
bradymiller authored Oct 9, 2023
1 parent 90bee3b commit 780abc8
Show file tree
Hide file tree
Showing 17 changed files with 6,910 additions and 9,067 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/styling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
php-version: '8.1'

- name: Report PHP Version
run: php -v
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/syntax.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['8.0', '8.1', '8.2', '8.3']
php: ['8.1', '8.2', '8.3']
name: PHP ${{ matrix.php }}
steps:
- uses: actions/checkout@v3
Expand Down
186 changes: 0 additions & 186 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,99 +11,6 @@ permissions:

jobs:

build_apache_80_1011:
name: PHP 8.0 - Apache - MariaDB 10.11
runs-on: ubuntu-22.04
env:
DOCKER_DIR: apache_80_1011
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.0'

- name: Report PHP Version
run: php -v

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

- 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_81_1011:
name: PHP 8.1 - Apache - MariaDB 10.11
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -1034,99 +941,6 @@ jobs:
build_test_common
if: ${{ success() || failure() }}

build_nginx_8:
name: PHP 8.0 - Nginx - MariaDB 10.11
runs-on: ubuntu-22.04
env:
DOCKER_DIR: nginx_80
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@v3

- 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@v3
with:
node-version: '18'

- 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_nginx_81:
name: PHP 8.1 - Nginx - MariaDB 10.11
runs-on: ubuntu-22.04
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ The OpenEMR development docker environment has a very rich advanced feature set.
docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c '/root/devtools register-oauth2-client-demo https://eleven.openemr.io/a/openemr'
```
3. <a name="other_php_versions"></a>Testing other PHP versions.
- The standard `flex` docker used in the easy development environments is PHP 8.2. This can be modified by changing the image (`image: openemr/openemr:flex`) used in the docker-compose.yml script. To use PHP 8.1, then just need to change it to `image: openemr/openemr:flex-3.17`. To use PHP 8.0, then just need to change it to `image: openemr/openemr:flex-3.15-8`.
- The standard `flex` docker used in the easy development environments is PHP 8.2. This can be modified by changing the image (`image: openemr/openemr:flex`) used in the docker-compose.yml script. To use PHP 8.1, then just need to change it to `image: openemr/openemr:flex-3.17`.
4. <a name="dev_tools_tests"></a>Php syntax checking, psr12 checking, and automated testing.
- To check PHP error logs:
```sh
Expand Down
22 changes: 0 additions & 22 deletions ci/apache_80_1011/docker-compose.yml

This file was deleted.

33 changes: 0 additions & 33 deletions ci/nginx_80/docker-compose.yml

This file was deleted.

Loading

0 comments on commit 780abc8

Please sign in to comment.