Skip to content

Commit

Permalink
Add some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nesrineabdmouleh committed Nov 26, 2024
1 parent e769fd8 commit f0a3ee3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ui-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand All @@ -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/
Expand Down

0 comments on commit f0a3ee3

Please sign in to comment.