From f0a3ee3f15836b7853b5a866550d1569ec6eef54 Mon Sep 17 00:00:00 2001 From: nesrineabdmouleh Date: Tue, 26 Nov 2024 23:18:16 +0100 Subject: [PATCH] Add some fixes --- .github/workflows/ui-test.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ui-test.yml b/.github/workflows/ui-test.yml index 915e64b8c..774e4a906 100644 --- a/.github/workflows/ui-test.yml +++ b/.github/workflows/ui-test.yml @@ -86,8 +86,8 @@ jobs: - name: Update run: | - docker exec -t prestashop php modules/autoupgrade/bin/console update:start --config-file-path=modules/autoupgrade/config.json --channel=${{ matrix.UPGRADE_CHANNEL }} admin-dev - docker exec -t prestashop chmod 777 -R /var/www/html/var + docker exec -t prestashop php modules/autoupgrade/bin/console update:start --config-file-path=modules/autoupgrade/config.json --channel=${{ matrix.UPGRADE_CHANNEL }} admin-dev + docker exec -t prestashop chmod 777 -R /var/www/html/var - name: Install dependencies working-directory: tests/UI/ @@ -109,8 +109,9 @@ jobs: - name: Rollback run: | - backupName=$(docker exec -t prestashop bash -c "ls -td -- /var/www/html/admin-dev/autoupgrade/backup/*/ | head -n 1 | cut -d'/' -f8 | tr -d '\n'") - docker exec -t prestashop php modules/autoupgrade/bin/console backup:restore --backup=$backupName admin-dev + backupName=$(docker exec -t prestashop bash -c "ls -td -- /var/www/html/admin-dev/autoupgrade/backup/*/ | head -n 1 | cut -d'/' -f8 | tr -d '\n'") + docker exec -t prestashop php modules/autoupgrade/bin/console backup:restore --backup=$backupName admin-dev + docker exec -t prestashop chmod 777 -R /var/www/html/app - name: Run Sanity tests working-directory: tests/UI/