Skip to content

Commit

Permalink
Wait for install page to be accessible before running the sanity camp…
Browse files Browse the repository at this point in the history
…aign
  • Loading branch information
jolelievre committed Dec 5, 2023
1 parent 084ef4d commit f71300d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/sanity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ jobs:
# Wait for all builds to be finished (the check is required because we encountered cases where the action exited before
# everything was built, probably because of the parallelization and background processes)
- name: Check that all builds are finished
env:
URL_FO: 'https://localhost:8002/'
URL_PING: 'install-dev/'
run: |
buildLocks="tests/UI admin-dev/themes/new-theme/buildLock admin-dev/themes/default/buildLock themes/classic/_dev/buildLock themes/buildLock"
echo Checking for all these lock files $buildLocks
Expand All @@ -123,6 +126,8 @@ jobs:
fi
echo $lockFile is no longer present
done
bash -c 'while [[ "$(curl -L -s -o /dev/null -w %{http_code} ${{ env.URL_FO }}${{ env.URL_PING }})" != "200" ]]; do echo Waiting 5 more seconds for shop install to be ready; sleep 5; done'
# Playwright must be installed all the time, we only install chromium since it's the only browser used
- name: Install browsers
working-directory: ${{ env.PS_DIR }}/tests/UI
Expand Down

0 comments on commit f71300d

Please sign in to comment.