localhost bind
This commit is contained in:
parent
58ae955f66
commit
f3ff40b6f1
1 changed files with 12 additions and 2 deletions
|
@ -16,7 +16,19 @@ jobs:
|
||||||
--health-timeout 5s
|
--health-timeout 5s
|
||||||
--health-retries 5
|
--health-retries 5
|
||||||
--workdir /app
|
--workdir /app
|
||||||
|
ports:
|
||||||
|
- 8081:8081
|
||||||
steps:
|
steps:
|
||||||
|
- name: Wait for service to be healthy
|
||||||
|
run: |
|
||||||
|
for i in {1..10}; do
|
||||||
|
if curl -f http://localhost:8081/; then
|
||||||
|
echo "Website is up!"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
echo "Waiting for website to be up..."
|
||||||
|
sleep 5
|
||||||
|
done
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: https://code.forgejo.org/actions/checkout@v3
|
uses: https://code.forgejo.org/actions/checkout@v3
|
||||||
- name: test
|
- name: test
|
||||||
|
@ -29,8 +41,6 @@ jobs:
|
||||||
run: curl -v -o - "website" || true
|
run: curl -v -o - "website" || true
|
||||||
- name: test
|
- name: test
|
||||||
run: curl -v -o - "website:8081" || true
|
run: curl -v -o - "website:8081" || true
|
||||||
- name: logs
|
|
||||||
run: docker logs "${{ job.services.website.id }}"
|
|
||||||
- name: Run unlighthouse
|
- name: Run unlighthouse
|
||||||
run: unlighthouse-ci --site "http://website/" --disable-dynamic-sampling
|
run: unlighthouse-ci --site "http://website/" --disable-dynamic-sampling
|
||||||
- name: Prepare artifacts
|
- name: Prepare artifacts
|
||||||
|
|
Loading…
Reference in a new issue