Skip to content

Commit

Permalink
TC-47 test cypress
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniil Tkachev committed Dec 30, 2024
1 parent af234b4 commit 092f3f7
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/universal_workflow_light.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1168,6 +1168,10 @@ jobs:
id: rt
shell: bash
run: |
echo "Debugging environment variables:"
env | grep "^cypress_"
echo "Setting outputs..."
# Rest of the script...
${{ needs.init.outputs.debug }}
set +x
E=$(env|grep -e "^cypress_")
Expand Down Expand Up @@ -1222,6 +1226,14 @@ jobs:
sed -e 's#\-\-*#-#' -e 's#\_\_*#_#g' | \
tee -a "${GITHUB_OUTPUT}"
- name: Set Cypress Variables
run: |

Check failure on line 1230 in .github/workflows/universal_workflow_light.yaml

View workflow job for this annotation

GitHub Actions / osc_telecash_php82_mysql_80 / actionlint

shellcheck reported issue in this script: SC2129:style:1:1: Consider using { cmd1; cmd2; } >> file instead of individual redirects

Check failure on line 1230 in .github/workflows/universal_workflow_light.yaml

View workflow job for this annotation

GitHub Actions / osc_telecash_php82_mysql_80 / actionlint

shellcheck reported issue in this script: SC2086:info:1:49: Double quote to prevent globbing and word splitting

Check failure on line 1230 in .github/workflows/universal_workflow_light.yaml

View workflow job for this annotation

GitHub Actions / osc_telecash_php82_mysql_80 / actionlint

shellcheck reported issue in this script: SC2086:info:2:40: Double quote to prevent globbing and word splitting

Check failure on line 1230 in .github/workflows/universal_workflow_light.yaml

View workflow job for this annotation

GitHub Actions / osc_telecash_php82_mysql_80 / actionlint

shellcheck reported issue in this script: SC2086:info:3:38: Double quote to prevent globbing and word splitting

Check failure on line 1230 in .github/workflows/universal_workflow_light.yaml

View workflow job for this annotation

GitHub Actions / osc_telecash_php82_mysql_80 / actionlint

shellcheck reported issue in this script: SC2086:info:4:38: Double quote to prevent globbing and word splitting

Check failure on line 1230 in .github/workflows/universal_workflow_light.yaml

View workflow job for this annotation

GitHub Actions / osc_telecash_php82_mysql_80 / actionlint

shellcheck reported issue in this script: SC2086:info:5:38: Double quote to prevent globbing and word splitting
echo "cypress_composer_transform=some_value" >> $GITHUB_ENV
echo "cypress_composer_early=false" >> $GITHUB_ENV
echo "cypress_container_name=php" >> $GITHUB_ENV
echo "cypress_container_options=" >> $GITHUB_ENV
echo "cypress_path=/var/www/html" >> $GITHUB_ENV
- name: 'Start shop'
uses: 'OXID-eSales/github-actions/start_shop@v4'
with:
Expand Down Expand Up @@ -1266,6 +1278,21 @@ jobs:
${{ steps.rt.outputs.cypress_container_name }} \
composer update --no-interaction -d "/var/www/${{ steps.rt.outputs.cypress_path }}"
- name: Run composer if there is no transform
if: ${{ (steps.rt.outputs.cypress_composer_transform == '' || !steps.rt.outputs.cypress_composer_transform) && (steps.rt.outputs.cypress_composer_early == 'false' || !steps.rt.outputs.cypress_composer_early) }}
run: |
# run composer
${{ inputs.debug }}
docker compose exec -T \
${{ steps.rt.outputs.cypress_container_options || '--user=www-data' }} \
${{ steps.rt.outputs.cypress_container_name || 'php' }} \
composer config -g github-oauth.github.com "${{ secrets.enterprise_github_token || github.token }}"
docker compose exec -T \
${{ steps.rt.outputs.cypress_container_options || '--user=www-data' }} \
${{ steps.rt.outputs.cypress_container_name || 'php' }} \
composer update --no-interaction -d "/var/www/${{ steps.rt.outputs.cypress_path || 'html' }}"
- name: Run custom scripts
uses: 'OXID-eSales/github-actions/run_custom_scripts@v4'
with:
Expand Down

0 comments on commit 092f3f7

Please sign in to comment.