Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update github-actions to 4.14.3 #157

Merged
merged 16 commits into from
Jun 19, 2024
7 changes: 6 additions & 1 deletion .github/oxid-esales/defaults/defaults_light.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ global:

# Run composer for every module in the install job if early is set to true
# Do not use this with oxideshop-ce
early: false
early: &early false

# Use these settings below to merge a json configuration with an existing
# composer.json
Expand Down Expand Up @@ -195,8 +195,12 @@ init:

# This step installs the sdk, shop and module(s)
install:
# This can be either 'legacy' or 'script'
method: 'legacy'

# The path for the script to install the shop
script: 'source/vendor/oxid-esales/oxideshop-ce/.github/oxid-esales/install.sh'

# This step installs the sdk, shop and module(s)
install_shop_with_modules:
matrix: *matrix
Expand Down Expand Up @@ -293,6 +297,7 @@ runscript: &runscript
cache:
bucket: *cache_bucket
composer:
early: *early
file: 'source/dev-packages/test-module/composer.json'
backup: true
transform: ''
Expand Down
7 changes: 6 additions & 1 deletion .github/oxid-esales/defaults/defaults_light.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ global:

# Run composer for every module in the install job if early is set to true
# Do not use this with oxideshop-ce
early: false
early: &early false

# Use these settings below to merge a json configuration with an existing
# composer.json
Expand Down Expand Up @@ -195,8 +195,12 @@ init:

# This step installs the sdk, shop and module(s)
install:
# This can be either 'legacy' or 'script'
method: 'legacy'

# The path for the script to install the shop
script: 'source/vendor/oxid-esales/oxideshop-ce/.github/oxid-esales/install.sh'

# This step installs the sdk, shop and module(s)
install_shop_with_modules:
matrix: *matrix
Expand Down Expand Up @@ -293,6 +297,7 @@ runscript: &runscript
cache:
bucket: *cache_bucket
composer:
early: *early
file: 'source/dev-packages/test-module/composer.json'
backup: true
transform: ''
Expand Down
2 changes: 1 addition & 1 deletion .github/oxid-esales/defaults/php8.0_mysql8.0_only.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
prepare_shop:
matrix: &matrix
php: '["8.0"]'
mysql: '["8.0"]'
mysql: '["8.0.36"]'

install_shop:
matrix: *matrix
Expand Down
2 changes: 1 addition & 1 deletion .github/oxid-esales/defaults/php8.0_mysql8.0_only.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
prepare_shop:
matrix: &matrix
php: '["8.0"]'
mysql: '["8.0"]'
mysql: '["8.0.36"]'

install_shop:
matrix: *matrix
Expand Down
2 changes: 1 addition & 1 deletion .github/oxid-esales/defaults/php8.1_mysql8.0_only.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
prepare_shop:
matrix: &matrix
php: '["8.1"]'
mysql: '["8.0"]'
mysql: '["8.0.36"]'

install_shop:
matrix: *matrix
Expand Down
2 changes: 1 addition & 1 deletion .github/oxid-esales/defaults/php8.1_mysql8.0_only.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
prepare_shop:
matrix: &matrix
php: '["8.1"]'
mysql: '["8.0"]'
mysql: '["8.0.36"]'

install_shop:
matrix: *matrix
Expand Down
2 changes: 1 addition & 1 deletion .github/oxid-esales/defaults/php8.2_mysql8.0_only.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
prepare_shop:
matrix: &matrix
php: '["8.2"]'
mysql: '["8.0"]'
mysql: '["8.0.36"]'

install_shop:
matrix: *matrix
Expand Down
2 changes: 1 addition & 1 deletion .github/oxid-esales/defaults/php8.2_mysql8.0_only.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
prepare_shop:
matrix: &matrix
php: '["8.2"]'
mysql: '["8.0"]'
mysql: '["8.0.36"]'

install_shop:
matrix: *matrix
Expand Down
2 changes: 1 addition & 1 deletion .github/oxid-esales/defaults/php8.3_mysql8.0_only.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
prepare_shop:
matrix: &matrix
php: '["8.3"]'
mysql: '["8.0"]'
mysql: '["8.0.36"]'

install_shop:
matrix: *matrix
Expand Down
2 changes: 1 addition & 1 deletion .github/oxid-esales/defaults/php8.3_mysql8.0_only.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
prepare_shop:
matrix: &matrix
php: '["8.3"]'
mysql: '["8.0"]'
mysql: '["8.0.36"]'

install_shop:
matrix: *matrix
Expand Down
19 changes: 11 additions & 8 deletions .github/workflows/universal_workflow_light.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@
unset INPUT_FILES INPUT_INPUT_TYPE INPUT_JSON
rm .composer_merge.tmp.json
fi
echo -e "\033[0;35mRuning composer install for '${PREFIX}' in '${COMPOSER_PATH}' using 'runscript_${PREFIX}_path'\033[0m"
echo -e "\033[0;35mRuning composer install for '${PREFIX}' in '${COMPOSER_PATH}' using 'runscript_${PREFIX}_path, runscript_${PREFIX}_composer_early=='${EARLY}''\033[0m"

Check warning on line 369 in .github/workflows/universal_workflow_light.yaml

View workflow job for this annotation

GitHub Actions / yamllint

369:161 [line-length] line too long (183 > 160 characters)
docker compose ${{ steps.iltp.outputs.install_container_method }} -T \
${{ steps.iltp.outputs.install_container_options }} \
${{ steps.iltp.outputs.install_container_name }} \
Expand Down Expand Up @@ -395,7 +395,7 @@
unset INPUT_FILES INPUT_INPUT_TYPE INPUT_JSON
rm .composer_merge.tmp.json
fi
echo -e "\033[0;35mRuning composer install for '${PREFIX}' in '${COMPOSER_PATH}' using 'runslim_${PREFIX}_path'\033[0m"
echo -e "\033[0;35mRuning composer install for '${PREFIX}' in '${COMPOSER_PATH}' using 'runslim_${PREFIX}_path, runslim_${PREFIX}_composer_early=='${EARLY}''\033[0m"

Check warning on line 398 in .github/workflows/universal_workflow_light.yaml

View workflow job for this annotation

GitHub Actions / yamllint

398:161 [line-length] line too long (179 > 160 characters)
docker compose ${{ steps.iltp.outputs.install_shop_with_modules_container_method }} -T \
${{ steps.iltp.outputs.install_shop_with_modules_container_options }} \
${{ steps.iltp.outputs.install_shop_with_modules_container_name }} \
Expand Down Expand Up @@ -517,7 +517,7 @@
key: '${{ steps.iltp.outputs.install_cache_prepared_shop_prefix }}_${{steps.itn.outputs.matrix_suffix}}'

- name: Debug cache preparedShop
if: ${{ inputs.debug == 'true' && steps.iltp.outputs.install_cache_prepared_shop == true }}
if: ${{ inputs.debug == 'true' && steps.iltp.outputs.install_cache_prepared_shop == 'true' }}
shell: bash
run: |
# install: Debug cache current installation
Expand Down Expand Up @@ -562,22 +562,25 @@
if: ${{ steps.iltp.outputs.install_method == 'script' && steps.iltp.outputs.install_skip_shop_installation == 'false' }}
run: |
echo "banner 'Install shop (script)'" >>debug/debug.sh
for E in $(env|grep -E "^global_|^install_|^custom_|^secrets_"|grep -v "_transform="); do
IFS=';' read -ra EXP <<< "$E"
VARS=$(env|grep -E "^global_|^install_|^custom_|^secrets_"|grep -v "^install_shop_with_modules_"|grep -v "|_transform=")
IFS=$'\n'
while read -r E ; do
IFS='=' read -ra EXP <<< "$E"
VAL=("${EXP[@]:1}")
# shellcheck disable=SC2145
echo "export ${EXP[0]}='${VAL[@]}'" >>debug/debug.sh
done
cat >>debug/debug.sh <<EOF
done <<< "$VARS"
cat >>debug/debug.sh <<'EOF'
SCRIPT="source/vendor/oxid-esales/oxideshop-ce/.github/oxid-esales/install.sh"
if [ -f "${SCRIPT}" ]; then
chmod a+x "${SCRIPT}"
"${SCRIPT}"
else
echo -e "\033[0;31mCould not finds ${SCRIPT}\033[0m"
echo -e "\033[0;31mCould not find ${SCRIPT}\033[0m"
exit 1
fi
EOF

- name: Activate modules
shell: bash
run: |
Expand Down
19 changes: 11 additions & 8 deletions .github/workflows/universal_workflow_light.yml
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@
unset INPUT_FILES INPUT_INPUT_TYPE INPUT_JSON
rm .composer_merge.tmp.json
fi
echo -e "\033[0;35mRuning composer install for '${PREFIX}' in '${COMPOSER_PATH}' using 'runscript_${PREFIX}_path'\033[0m"
echo -e "\033[0;35mRuning composer install for '${PREFIX}' in '${COMPOSER_PATH}' using 'runscript_${PREFIX}_path, runscript_${PREFIX}_composer_early=='${EARLY}''\033[0m"

Check warning on line 369 in .github/workflows/universal_workflow_light.yml

View workflow job for this annotation

GitHub Actions / yamllint

369:161 [line-length] line too long (183 > 160 characters)
docker compose ${{ steps.iltp.outputs.install_container_method }} -T \
${{ steps.iltp.outputs.install_container_options }} \
${{ steps.iltp.outputs.install_container_name }} \
Expand Down Expand Up @@ -395,7 +395,7 @@
unset INPUT_FILES INPUT_INPUT_TYPE INPUT_JSON
rm .composer_merge.tmp.json
fi
echo -e "\033[0;35mRuning composer install for '${PREFIX}' in '${COMPOSER_PATH}' using 'runslim_${PREFIX}_path'\033[0m"
echo -e "\033[0;35mRuning composer install for '${PREFIX}' in '${COMPOSER_PATH}' using 'runslim_${PREFIX}_path, runslim_${PREFIX}_composer_early=='${EARLY}''\033[0m"

Check warning on line 398 in .github/workflows/universal_workflow_light.yml

View workflow job for this annotation

GitHub Actions / yamllint

398:161 [line-length] line too long (179 > 160 characters)
docker compose ${{ steps.iltp.outputs.install_shop_with_modules_container_method }} -T \
${{ steps.iltp.outputs.install_shop_with_modules_container_options }} \
${{ steps.iltp.outputs.install_shop_with_modules_container_name }} \
Expand Down Expand Up @@ -517,7 +517,7 @@
key: '${{ steps.iltp.outputs.install_cache_prepared_shop_prefix }}_${{steps.itn.outputs.matrix_suffix}}'

- name: Debug cache preparedShop
if: ${{ inputs.debug == 'true' && steps.iltp.outputs.install_cache_prepared_shop == true }}
if: ${{ inputs.debug == 'true' && steps.iltp.outputs.install_cache_prepared_shop == 'true' }}
shell: bash
run: |
# install: Debug cache current installation
Expand Down Expand Up @@ -562,22 +562,25 @@
if: ${{ steps.iltp.outputs.install_method == 'script' && steps.iltp.outputs.install_skip_shop_installation == 'false' }}
run: |
echo "banner 'Install shop (script)'" >>debug/debug.sh
for E in $(env|grep -E "^global_|^install_|^custom_|^secrets_"|grep -v "_transform="); do
IFS=';' read -ra EXP <<< "$E"
VARS=$(env|grep -E "^global_|^install_|^custom_|^secrets_"|grep -v "^install_shop_with_modules_"|grep -v "|_transform=")
IFS=$'\n'
while read -r E ; do
IFS='=' read -ra EXP <<< "$E"
VAL=("${EXP[@]:1}")
# shellcheck disable=SC2145
echo "export ${EXP[0]}='${VAL[@]}'" >>debug/debug.sh
done
cat >>debug/debug.sh <<EOF
done <<< "$VARS"
cat >>debug/debug.sh <<'EOF'
SCRIPT="source/vendor/oxid-esales/oxideshop-ce/.github/oxid-esales/install.sh"
if [ -f "${SCRIPT}" ]; then
chmod a+x "${SCRIPT}"
"${SCRIPT}"
else
echo -e "\033[0;31mCould not finds ${SCRIPT}\033[0m"
echo -e "\033[0;31mCould not find ${SCRIPT}\033[0m"
exit 1
fi
EOF

- name: Activate modules
shell: bash
run: |
Expand Down
2 changes: 1 addition & 1 deletion prepare_shop/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ runs:
docker compose ps --all

- name: Output docker logs if make up failed
if: failure()
if: always()
shell: bash
run: |
# prepare_shop: Output docker logs if make up failed
Expand Down
Loading