Skip to content

Commit

Permalink
.github/workflows/test.yaml: wait until the local repository initiali…
Browse files Browse the repository at this point in the history
…zation ends
  • Loading branch information
zozlak committed Nov 28, 2024
1 parent 0e7c63f commit 6fa4bb5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@ jobs:
run: |
mkdir log
docker run --name arche -p 80:80 -p 5432:5432 -v `pwd`/log:/home/www-data/log -v `pwd`/config:/home/www-data/config -e USER_UID=`id -u` -e USER_GID=`id -g` -e ADMIN_PSWD=admin -d acdhch/arche
- name: wait
run: |
while [ "`grep '# INIT SCRIPTS ENDED' log/initScripts.log | wc -l`" != "1" ]; do
tail log/initScripts.log || true
echo "Waiting until repository is ready..."
echo "-----"
sleep 10
done
cat log/initScripts.log
#- uses: mxschmitt/action-tmate@v3
- name: phpunit
run: |
XDEBUG_MODE=coverage vendor/bin/phpunit
Expand Down

0 comments on commit 6fa4bb5

Please sign in to comment.