Skip to content

Commit

Permalink
Merge branch 'b-7.1.x' into b-7.2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
joernott committed Sep 19, 2024
2 parents 62e5d89 + a10c722 commit e6203cc
Show file tree
Hide file tree
Showing 7 changed files with 100 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/oxid-esales/shop_ce.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ runscript: &runscript
path: ''
container:
# {{ $selenium_options := "-e SELENIUM_SERVER_HOST=selenium -e BROWSER_NAME=chrome" }}
options: '-e XDEBUG_MODE=coverage {{ $selenium_options }} -e GITHUB_EVENT_NAME="{{ .Github.EventName }}" -e GITHUB_BASE_REF="{{ .Github.BaseRef }}" -e GITHUB_REF="refs/heads/{{ .Data.global.git.shop_ref }}" -e GITHUB_REF_NAME="{{ .Data.global.git.shop_ref }}"'
options: '-e XDEBUG_MODE=coverage -e CODECEPTION_OPTIONS="--ext DotReporter --skip-group flow_theme" {{ $selenium_options }} -e GITHUB_EVENT_NAME="{{ .Github.EventName }}" -e GITHUB_BASE_REF="{{ .Github.BaseRef }}" -e GITHUB_REF="refs/heads/{{ .Data.global.git.shop_ref }}" -e GITHUB_REF_NAME="{{ .Data.global.git.shop_ref }}"'
setup:
<<: *shop
load_shop: '{{ .Data.install_shop_with_modules.cache.prepared_shop_prefix }}'
Expand All @@ -63,5 +63,5 @@ sonarcloud:
strip_path: '/var/www/vendor/{{ print $org }}/{{ print $name}}/'

finish:
slack_title: 'Shop CE ({{ .Data.install.git.shop_ref }}) by {{ .Github.Actor }}'
slack_title: 'Shop CE ({{ .Data.global.git.ref }}) by {{ .Github.Actor }}'
slack_compact: true
6 changes: 3 additions & 3 deletions .github/workflows/scheduled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
if: always()
uses: oxid-eSales/github-actions/.github/workflows/universal_workflow_light.yaml@v4
with:
testplan: '~/defaults/7.1.x.yaml,~/defaults/scheduled.yaml,~/shop_ce.yaml'
testplan: '~/defaults/7.1.x.yaml,~/defaults/php8.1_8.2_mysql8.0_only.yaml,~/defaults/scheduled.yaml,~/shop_ce.yaml'
runs_on: '"ubuntu-latest"'
defaults: 'v4'
plan_folder: '.github/oxid-esales'
Expand All @@ -34,7 +34,7 @@ jobs:
if: always()
uses: oxid-eSales/github-actions/.github/workflows/universal_workflow_light.yaml@v4
with:
testplan: '~/defaults/7.2.x.yaml,~/defaults/scheduled.yaml,~/shop_ce.yaml'
testplan: '~/defaults/7.2.x.yaml,~/defaults/php8.2_8.3_mysql8.0_only.yaml,~/defaults/scheduled.yaml,~/shop_ce.yaml'
runs_on: '"ubuntu-latest"'
defaults: 'v4'
plan_folder: '.github/oxid-esales'
Expand All @@ -59,7 +59,7 @@ jobs:
if: always()
uses: oxid-eSales/github-actions/.github/workflows/universal_workflow_light.yaml@v4
with:
testplan: '~/defaults/8.0.x.yaml,~/defaults/scheduled.yaml,~/shop_ce.yaml'
testplan: '~/defaults/8.0.x.yaml,~/defaults/php8.2_8.3_mysql8.0_only.yaml,~/defaults/scheduled.yaml,~/shop_ce.yaml'
runs_on: '"ubuntu-latest"'
defaults: 'v4'
plan_folder: '.github/oxid-esales'
Expand Down
81 changes: 81 additions & 0 deletions .github/workflows/scheduled_mariadb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: Weekly MariaDB runs

on:
schedule:
- cron: '17 23 * * 6'

jobs:
oxideshop_ce_71x_nightly:
if: always()
uses: oxid-eSales/github-actions/.github/workflows/universal_workflow_light.yaml@v4
with:
testplan: '~/defaults/7.1.x.yaml,~/defaults/php8.1_8.2_mariadb11_only.yaml,~/defaults/scheduled.yaml,~/shop_ce.yaml'
runs_on: '"ubuntu-latest"'
defaults: 'v4'
plan_folder: '.github/oxid-esales'
custom_testplan_yaml: |
global:
title: '7.1.x-mariadb-weekly'
finish:
slack_title: 'Weekly Shop CE 7.1.x/MariaDB on {{ .Github.Repository }}'
use_scheduled_slack_channel: true
secrets:
DOCKER_HUB_USER: ${{ secrets.DOCKER_HUB_USER }}
DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }}
CACHE_ENDPOINT: ${{ secrets.CACHE_ENDPOINT }}
CACHE_ACCESS_KEY: ${{ secrets.CACHE_ACCESS_KEY }}
CACHE_SECRET_KEY: ${{ secrets.CACHE_SECRET_KEY }}
enterprise_github_token: ${{ secrets.enterprise_github_token }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_SCHEDULED_WEBHOOK_URL: ${{ secrets.SLACK_SCHEDULED_WEBHOOK_URL }}

oxideshop_ce_72x_nightly:
if: always()
uses: oxid-eSales/github-actions/.github/workflows/universal_workflow_light.yaml@v4
with:
testplan: '~/defaults/7.2.x.yaml,~/defaults/php8.2_8.3_mariadb11_only.yaml,~/defaults/scheduled.yaml,~/shop_ce.yaml'
runs_on: '"ubuntu-latest"'
defaults: 'v4'
plan_folder: '.github/oxid-esales'
custom_testplan_yaml: |
global:
title: '7.2.x-mariadb-weekly'
finish:
slack_title: 'Weekly Shop CE 7.2.x/MariaDB on {{ .Github.Repository }}'
use_scheduled_slack_channel: true
secrets:
DOCKER_HUB_USER: ${{ secrets.DOCKER_HUB_USER }}
DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }}
CACHE_ENDPOINT: ${{ secrets.CACHE_ENDPOINT }}
CACHE_ACCESS_KEY: ${{ secrets.CACHE_ACCESS_KEY }}
CACHE_SECRET_KEY: ${{ secrets.CACHE_SECRET_KEY }}
enterprise_github_token: ${{ secrets.enterprise_github_token }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_SCHEDULED_WEBHOOK_URL: ${{ secrets.SLACK_SCHEDULED_WEBHOOK_URL }}

oxideshop_ce_80x_nightly:
if: always()
uses: oxid-eSales/github-actions/.github/workflows/universal_workflow_light.yaml@v4
with:
testplan: '~/defaults/8.0.x.yaml,~/defaults/php8.2_8.3_mariadb11_only.yaml,~/defaults/scheduled.yaml,~/shop_ce.yaml'
runs_on: '"ubuntu-latest"'
defaults: 'v4'
plan_folder: '.github/oxid-esales'
custom_testplan_yaml: |
global:
title: '8.0.x-mariadb-weekly'
finish:
slack_title: 'Weekly Shop CE 8.0.x/MariaDB on {{ .Github.Repository }}'
use_scheduled_slack_channel: true
secrets:
DOCKER_HUB_USER: ${{ secrets.DOCKER_HUB_USER }}
DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }}
CACHE_ENDPOINT: ${{ secrets.CACHE_ENDPOINT }}
CACHE_ACCESS_KEY: ${{ secrets.CACHE_ACCESS_KEY }}
CACHE_SECRET_KEY: ${{ secrets.CACHE_SECRET_KEY }}
enterprise_github_token: ${{ secrets.enterprise_github_token }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_SCHEDULED_WEBHOOK_URL: ${{ secrets.SLACK_SCHEDULED_WEBHOOK_URL }}
3 changes: 1 addition & 2 deletions tests/scripts/codeception.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,8 @@ RESULT=$?
echo "Codecept build exited with error code ${RESULT}"
"${CODECEPT}" run "${SUITE}" \
-c "${ABSOLUTE_PATH}/${TESTDIR}/codeception.yml" \
--ext DotReporter \
${CODECEPTION_OPTIONS} \
-o "paths: output: ${OUTPUT_DIR}" 2>&1 \
--skip-group flow_theme \
| tee "${LOG_FILE}"
RESULT=$?
echo "Codecept run exited with error code ${RESULT}"
Expand Down
7 changes: 6 additions & 1 deletion tests/scripts/integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,12 @@ EOF

init

"${PHPUNIT}" -c "${XML_FILE}" --bootstrap "${BOOTSTRAP}" --coverage-clover="${COVERAGE_FILE}" "${SUITE}" 2>&1 \
"${PHPUNIT}" \
-c "${XML_FILE}" \
--bootstrap "${BOOTSTRAP}" \
--coverage-clover="${COVERAGE_FILE}" \
${INTEGRATION_OPTIONS} \
"${SUITE}" 2>&1 \
| tee "${LOG_FILE}"
RESULT=$?
echo "phpunit exited with error code ${RESULT}"
Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/shop-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ RESULT=$?
echo "codecept build exited with error code ${RESULT}"
"${CODECEPT}" run "${SUITE}" \
-c "${ABSOLUTE_PATH}/${TESTDIR}/codeception.yml" \
--ext DotReporter \
${SHOP_SETUP_OPTIONS} \
-o "paths: output: ${OUTPUT_DIR}" 2>&1 \
| tee "${LOG_FILE}"
RESULT=$?
Expand Down
7 changes: 6 additions & 1 deletion tests/scripts/unit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,12 @@ EOF

init

"${PHPUNIT}" -c "${XML_FILE}" --bootstrap "${BOOTSTRAP}" --coverage-clover="${COVERAGE_FILE}" "${SUITE}" 2>&1 \
"${PHPUNIT}" \
-c "${XML_FILE}" \
--bootstrap "${BOOTSTRAP}" \
--coverage-clover="${COVERAGE_FILE}" \
${UNIT_OPTIONS} \
"${SUITE}" 2>&1 \
| tee "${LOG_FILE}"
RESULT=$?
echo "phpunit exited with error code ${RESULT}"
Expand Down

0 comments on commit e6203cc

Please sign in to comment.