feat(lab1): juice shop deploy + PR template + triage report #43
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |