Skip to content

Commit

Permalink
Drop PHP 8.1 and add PHP 8.3 for shop versions >7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
joernott committed Aug 1, 2024
2 parents 8d992c4 + fdc4c75 commit 2ea1d4b
Show file tree
Hide file tree
Showing 11 changed files with 73 additions and 68 deletions.
26 changes: 13 additions & 13 deletions .github/oxid-esales/defaults/ee.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ install_shop_with_modules: &install
"ddoe/*": "source"
},
"require": {
"oxid-esales/oxideshop-pe": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/oxideshop-ee": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/twig-component": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/twig-component-pe": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/twig-component-ee": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/twig-admin-theme": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/apex-theme": "{{ .Data.global.composer.dev_ref }}"
"oxid-esales/oxideshop-pe": "{{ .Data.global.composer.ref_name }}",
"oxid-esales/oxideshop-ee": "{{ .Data.global.composer.ref_name }}",
"oxid-esales/twig-component": "{{ .Data.global.composer.ref_name }}",
"oxid-esales/twig-component-pe": "{{ .Data.global.composer.ref_name }}",
"oxid-esales/twig-component-ee": "{{ .Data.global.composer.ref_name }}",
"oxid-esales/twig-admin-theme": "{{ .Data.global.composer.ref_name }}",
"oxid-esales/apex-theme": "{{ .Data.global.composer.ref_name }}"
},
"require-dev": {
"oxid-esales/codeception-modules": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/codeception-page-objects": "{{ .Data.global.composer.dev_ref }}"
"oxid-esales/codeception-modules": "{{ .Data.global.composer.ref_name }}",
"oxid-esales/codeception-page-objects": "{{ .Data.global.composer.ref_name }}"
},
"repositories": {
"oxid-esales/twig-component-ee": {
Expand Down Expand Up @@ -118,10 +118,10 @@ runtest:
transform: |
{
"require-dev": {
"oxid-esales/testing-library": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/tests-deprecated-ce": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/tests-deprecated-pe": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/tests-deprecated-ee": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/testing-library": "{{ .Data.global.composer.ref_name }}",
"oxid-esales/tests-deprecated-ce": "{{ .Data.global.composer.ref_name }}",
"oxid-esales/tests-deprecated-pe": "{{ .Data.global.composer.ref_name }}",
"oxid-esales/tests-deprecated-ee": "{{ .Data.global.composer.ref_name }}",
"codeception/module-webdriver": "^3.1",
"phpunit/phpunit": "^9.1.1"
},
Expand Down
26 changes: 13 additions & 13 deletions .github/oxid-esales/defaults/ee.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ install_shop_with_modules: &install
"ddoe/*": "source"
},
"require": {
"oxid-esales/oxideshop-pe": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/oxideshop-ee": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/twig-component": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/twig-component-pe": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/twig-component-ee": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/twig-admin-theme": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/apex-theme": "{{ .Data.global.composer.dev_ref }}"
"oxid-esales/oxideshop-pe": "{{ .Data.global.composer.ref_name }}",
"oxid-esales/oxideshop-ee": "{{ .Data.global.composer.ref_name }}",
"oxid-esales/twig-component": "{{ .Data.global.composer.ref_name }}",
"oxid-esales/twig-component-pe": "{{ .Data.global.composer.ref_name }}",
"oxid-esales/twig-component-ee": "{{ .Data.global.composer.ref_name }}",
"oxid-esales/twig-admin-theme": "{{ .Data.global.composer.ref_name }}",
"oxid-esales/apex-theme": "{{ .Data.global.composer.ref_name }}"
},
"require-dev": {
"oxid-esales/codeception-modules": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/codeception-page-objects": "{{ .Data.global.composer.dev_ref }}"
"oxid-esales/codeception-modules": "{{ .Data.global.composer.ref_name }}",
"oxid-esales/codeception-page-objects": "{{ .Data.global.composer.ref_name }}"
},
"repositories": {
"oxid-esales/twig-component-ee": {
Expand Down Expand Up @@ -118,10 +118,10 @@ runtest:
transform: |
{
"require-dev": {
"oxid-esales/testing-library": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/tests-deprecated-ce": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/tests-deprecated-pe": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/tests-deprecated-ee": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/testing-library": "{{ .Data.global.composer.ref_name }}",
"oxid-esales/tests-deprecated-ce": "{{ .Data.global.composer.ref_name }}",
"oxid-esales/tests-deprecated-pe": "{{ .Data.global.composer.ref_name }}",
"oxid-esales/tests-deprecated-ee": "{{ .Data.global.composer.ref_name }}",
"codeception/module-webdriver": "^3.1",
"phpunit/phpunit": "^9.1.1"
},
Expand Down
20 changes: 10 additions & 10 deletions .github/oxid-esales/defaults/pe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ install_shop_with_modules: &install
"ddoe/*": "source"
},
"require": {
"oxid-esales/oxideshop-pe": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/twig-component": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/twig-component-pe": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/twig-admin-theme": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/apex-theme": "{{ .Data.global.composer.dev_ref }}"
"oxid-esales/oxideshop-pe": "{{ .Data.global.composer.ref_name }}",
"oxid-esales/twig-component": "{{ .Data.global.composer.ref_name }}",
"oxid-esales/twig-component-pe": "{{ .Data.global.composer.ref_name }}",
"oxid-esales/twig-admin-theme": "{{ .Data.global.composer.ref_name }}",
"oxid-esales/apex-theme": "{{ .Data.global.composer.ref_name }}"
},
"require-dev": {
"oxid-esales/codeception-modules": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/codeception-page-objects": "{{ .Data.global.composer.dev_ref }}"
"oxid-esales/codeception-modules": "{{ .Data.global.composer.ref_name }}",
"oxid-esales/codeception-page-objects": "{{ .Data.global.composer.ref_name }}"
},
"repositories": {
"oxid-esales/twig-component-pe": {
Expand Down Expand Up @@ -108,9 +108,9 @@ runtest:
transform: |
{
"require-dev": {
"oxid-esales/testing-library": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/tests-deprecated-ce": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/tests-deprecated-pe": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/testing-library": "{{ .Data.global.composer.ref_name }}",
"oxid-esales/tests-deprecated-ce": "{{ .Data.global.composer.ref_name }}",
"oxid-esales/tests-deprecated-pe": "{{ .Data.global.composer.ref_name }}",
"codeception/module-webdriver": "^3.1",
"phpunit/phpunit": "^9.1.1"
},
Expand Down
20 changes: 10 additions & 10 deletions .github/oxid-esales/defaults/pe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ install_shop_with_modules: &install
"ddoe/*": "source"
},
"require": {
"oxid-esales/oxideshop-pe": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/twig-component": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/twig-component-pe": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/twig-admin-theme": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/apex-theme": "{{ .Data.global.composer.dev_ref }}"
"oxid-esales/oxideshop-pe": "{{ .Data.global.composer.ref_name }}",
"oxid-esales/twig-component": "{{ .Data.global.composer.ref_name }}",
"oxid-esales/twig-component-pe": "{{ .Data.global.composer.ref_name }}",
"oxid-esales/twig-admin-theme": "{{ .Data.global.composer.ref_name }}",
"oxid-esales/apex-theme": "{{ .Data.global.composer.ref_name }}"
},
"require-dev": {
"oxid-esales/codeception-modules": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/codeception-page-objects": "{{ .Data.global.composer.dev_ref }}"
"oxid-esales/codeception-modules": "{{ .Data.global.composer.ref_name }}",
"oxid-esales/codeception-page-objects": "{{ .Data.global.composer.ref_name }}"
},
"repositories": {
"oxid-esales/twig-component-pe": {
Expand Down Expand Up @@ -108,9 +108,9 @@ runtest:
transform: |
{
"require-dev": {
"oxid-esales/testing-library": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/tests-deprecated-ce": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/tests-deprecated-pe": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/testing-library": "{{ .Data.global.composer.ref_name }}",
"oxid-esales/tests-deprecated-ce": "{{ .Data.global.composer.ref_name }}",
"oxid-esales/tests-deprecated-pe": "{{ .Data.global.composer.ref_name }}",
"codeception/module-webdriver": "^3.1",
"phpunit/phpunit": "^9.1.1"
},
Expand Down
7 changes: 4 additions & 3 deletions .github/oxid-esales/defaults/scripts/codeception.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash
set -e
set -x
SUITE="${1}"

function init() {
Expand Down Expand Up @@ -44,7 +45,7 @@ function init() {
fi
fi
LOG_FILE="${OUTPUT_DIR}/codeception_${SUITE}.txt"
PATTERN_FILE="${SCRIPT_DIR}/codeception_failure_pattern.txt"
PATTERN_FILE="${SCRIPT_DIR}codeception_failure_pattern.txt"

CODECEPT="vendor/bin/codecept"
if [ ! -f "${CODECEPT}" ]; then
Expand Down Expand Up @@ -84,7 +85,7 @@ function wait_for_selenium() {
init
wait_for_selenium

"${CODECEPT}" build -c "${ABSOLUTE_PATH}/tests/codeception.yml"
"${CODECEPT}" build -c "${ABSOLUTE_PATH}/${TESTDIR}/codeception.yml"
RESULT=$?
echo "Codecept build exited with error code ${RESULT}"
"${CODECEPT}" run "${SUITE}" \
Expand All @@ -94,4 +95,4 @@ echo "Codecept build exited with error code ${RESULT}"
| tee "${LOG_FILE}"
RESULT=$?
echo "Codecept run exited with error code ${RESULT}"
"$SCRIPT_DIR/check_log.sh" "${LOG_FILE}" "${PATTERN_FILE}"
"${SCRIPT_DIR}check_log.sh" "${LOG_FILE}" "${PATTERN_FILE}"
8 changes: 4 additions & 4 deletions .github/oxid-esales/defaults/scripts/integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function init() {
fi

LOG_FILE="${OUTPUT_DIR}/phpunit_integration.txt"
PATTERN_FILE="${SCRIPT_DIR}/integration_failure_pattern.txt"
PATTERN_FILE="${SCRIPT_DIR}integration_failure_pattern.txt"

PHPUNIT="vendor/bin/phpunit"
if [ ! -f "${PHPUNIT}" ]; then
Expand All @@ -45,15 +45,15 @@ function init() {

BOOTSTRAP="/var/www/source/bootstrap.php"
if [ ! -f "${BOOTSTRAP}" ]; then
BOOTSTRAP="/var/www/vendor/oxid-esales/oxideshop-ce/${TESTDIR}/bootstrap.php"
BOOTSTRAP="/var/www/vendor/oxid-esales/oxideshop-ce/tests/bootstrap.php"
if [ ! -f "${BOOTSTRAP}" ]; then
echo -e "\033[0;31mCould not find bootstrap.php in /var/www/tests or /var/www/oxid-esales/oxideshop-ce/tests\033[0m"
find /var/www -iname "bootstrap.php"
exit 1
fi
fi

XML_FILE="${ABSOLUTE_PATH}/tests/phpunit.xml"
XML_FILE="${ABSOLUTE_PATH}/${TESTDIR}/phpunit.xml"
COVERAGE_FILE="${REPORT_DIR}/coverage_phpunit_integration.xml"

cat <<EOF
Expand All @@ -77,4 +77,4 @@ init
| tee "${LOG_FILE}"
RESULT=$?
echo "phpunit exited with error code ${RESULT}"
"${SCRIPT_DIR}/check_log.sh" "${LOG_FILE}" "${PATTERN_FILE}"
"${SCRIPT_DIR}check_log.sh" "${LOG_FILE}" "${PATTERN_FILE}"
6 changes: 3 additions & 3 deletions .github/oxid-esales/defaults/scripts/unit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function init() {
fi

LOG_FILE="${OUTPUT_DIR}/phpunit_unit.txt"
PATTERN_FILE="${SCRIPT_DIR}/unit_failure_pattern.txt"
PATTERN_FILE="${SCRIPT_DIR}unit_failure_pattern.txt"

PHPUNIT="vendor/bin/phpunit"
if [ ! -f "${PHPUNIT}" ]; then
Expand All @@ -45,7 +45,7 @@ function init() {

BOOTSTRAP="/var/www/source/bootstrap.php"
if [ ! -f "${BOOTSTRAP}" ]; then
BOOTSTRAP="/var/www/vendor/oxid-esales/oxideshop-ce/${TESTDIR}/bootstrap.php"
BOOTSTRAP="/var/www/vendor/oxid-esales/oxideshop-ce/tests/bootstrap.php"
if [ ! -f "${BOOTSTRAP}" ]; then
echo -e "\033[0;31mCould not find bootstrap.php in /var/www/tests or /var/www/oxid-esales/oxideshop-ce/tests\033[0m"
find /var/www -iname "bootstrap.php"
Expand Down Expand Up @@ -77,4 +77,4 @@ init
| tee "${LOG_FILE}"
RESULT=$?
echo "phpunit exited with error code ${RESULT}"
"${SCRIPT_DIR}/check_log.sh" "${LOG_FILE}" "${PATTERN_FILE}"
"${SCRIPT_DIR}check_log.sh" "${LOG_FILE}" "${PATTERN_FILE}"
7 changes: 4 additions & 3 deletions .github/workflows/call-universal_test_workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1693,10 +1693,11 @@ jobs:
if: ${{ inputs.runs_on != '"ubuntu-latest"'}}
run: |
NPM=$(type -p 'npm'||true)
if [ -z "${NPM}" ]; then
echo -e "\033[0;35m### Installing npm ###\033[0m"
PIPX=$(type -p 'pipx'||true)
if [ -z "${NPM}" ] || [ -z "${PIPX}" ]; then
echo -e "\033[0;35m### Installing npm, shellcheck, pipx ###\033[0m"
sudo DEBIAN_FRONTEND=noninteractive apt-get -qq update
sudo apt-get -qq install npm
sudo apt-get -qq install npm shellcheck pipx python3-venv
fi
- name: Checkout
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/call-universal_test_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1693,10 +1693,11 @@ jobs:
if: ${{ inputs.runs_on != '"ubuntu-latest"'}}
run: |
NPM=$(type -p 'npm'||true)
if [ -z "${NPM}" ]; then
echo -e "\033[0;35m### Installing npm ###\033[0m"
PIPX=$(type -p 'pipx'||true)
if [ -z "${NPM}" ] || [ -z "${PIPX}" ]; then
echo -e "\033[0;35m### Installing npm, shellcheck, pipx ###\033[0m"
sudo DEBIAN_FRONTEND=noninteractive apt-get -qq update
sudo apt-get -qq install npm
sudo apt-get -qq install npm shellcheck pipx python3-venv
fi
- name: Checkout
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/universal_workflow_light.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1246,10 +1246,11 @@ jobs:
if: ${{ inputs.runs_on != '"ubuntu-latest"'}}
run: |
NPM=$(type -p 'npm'||true)
if [ -z "${NPM}" ]; then
echo -e "\033[0;35m### Installing npm ###\033[0m"
PIPX=$(type -p 'pipx'||true)
if [ -z "${NPM}" ] || [ -z "${PIPX}" ]; then
echo -e "\033[0;35m### Installing npm, shellcheck, pipx ###\033[0m"
sudo DEBIAN_FRONTEND=noninteractive apt-get -qq update
sudo apt-get -qq install npm
sudo apt-get -qq install npm shellcheck pipx python3-venv
fi
- name: Checkout
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/universal_workflow_light.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1246,10 +1246,11 @@ jobs:
if: ${{ inputs.runs_on != '"ubuntu-latest"'}}
run: |
NPM=$(type -p 'npm'||true)
if [ -z "${NPM}" ]; then
echo -e "\033[0;35m### Installing npm ###\033[0m"
PIPX=$(type -p 'pipx'||true)
if [ -z "${NPM}" ] || [ -z "${PIPX}" ]; then
echo -e "\033[0;35m### Installing npm, shellcheck, pipx ###\033[0m"
sudo DEBIAN_FRONTEND=noninteractive apt-get -qq update
sudo apt-get -qq install npm
sudo apt-get -qq install npm shellcheck pipx python3-venv
fi
- name: Checkout
Expand Down

0 comments on commit 2ea1d4b

Please sign in to comment.