This commit is contained in:
parent
4b9b4ccf4e
commit
4fc33cd88b
@ -84,9 +84,17 @@ jobs:
|
||||
- name: Start Live Server
|
||||
run: |
|
||||
docker run -d -p 8081:8081 -v ${{ github.workspace }}:/usr/src/app gitbase.de/robin/live-server
|
||||
- name: Test HTTP Request
|
||||
|
||||
- name: Wait for Live Server
|
||||
run: |
|
||||
curl http://127.0.0.1:8081
|
||||
for i in {1..10}; do # tries 10 times at 5-second intervals
|
||||
curl http://127.0.0.1:8081 && break
|
||||
echo "Waiting for live-server to be ready..."
|
||||
sleep 5
|
||||
done
|
||||
|
||||
- name: Test HTTP Request
|
||||
run: curl http://127.0.0.1:8081
|
||||
|
||||
#- name: staging api testtest
|
||||
# if: github.ref == 'refs/heads/dev'
|
||||
|
Loading…
Reference in New Issue
Block a user