Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## Goal
Briefly describe what this PR delivers.

## Changes
- List files added or modified.

## Testing
- Commands you ran.
- Output you observed.

## Artifacts & Screenshots
- Link files and screenshots used as evidence.

Required checklist:
- [ ] Title is clear (feat(labN): <topic> style)
- [ ] No secrets/large temp files committed
- [ ] Submission file at `submissions/labN.md` exists
43 changes: 43 additions & 0 deletions .github/workflows/lab1-smoke.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Lab 1 Juice Shop Smoke Test

on:
pull_request:
branches:
- main

permissions:
contents: read

jobs:
smoke-test:
runs-on: ubuntu-latest
steps:
- name: Pull Juice Shop image
run: docker pull bkimminich/juice-shop:v20.0.0

- name: Start Juice Shop
run: docker run -d --name juice-shop -p 3000:3000 bkimminich/juice-shop:v20.0.0

- name: Wait for app readiness (<=60s)
run: |
for i in $(seq 1 30); do
if curl --silent --fail http://localhost:3000/rest/admin/application-version >/dev/null; then
echo "Juice Shop is ready"
exit 0
fi
echo "Waiting for Juice Shop... attempt $i/30"
sleep 2
done
echo "Juice Shop did not become ready in 60 seconds"
docker logs juice-shop || true
exit 1

- name: Verify homepage returns HTTP 200
run: |
code=$(curl --silent --output /dev/null --write-out "%{http_code}" http://localhost:3000)
echo "Homepage HTTP code: $code"
test "$code" = "200"

- name: Cleanup
if: always()
run: docker rm -f juice-shop || true
Loading