Skip to content

feat(lab1): juice shop deploy + PR template + triage report #43

feat(lab1): juice shop deploy + PR template + triage report

feat(lab1): juice shop deploy + PR template + triage report #43

Workflow file for this run

name: lab1-smoke
on:
pull_request:
branches: [main]
permissions:
contents: read
jobs:
smoke-test:
runs-on: ubuntu-latest
services:
juice-shop:
image: bkimminich/juice-shop:v20.0.0
ports:
- 3000:3000
steps:
- name: Wait for Juice Shop to answer with HTTP 200
run: |
for i in $(seq 1 30); do
if curl --silent --fail http://localhost:3000/rest/admin/application-version; then
echo
echo "Juice Shop is up after ~$((i * 2))s"
exit 0
fi
echo "attempt $i: not ready yet, sleeping 2s"
sleep 2
done
echo "Juice Shop did not become healthy within 60s"
exit 1