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
16 changes: 16 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
 Goal

\# Changes

\# Testing

\# Artifacts \& Screenshots

\# Checklist

\[x] Title is clear (feat(labN): style)

\[x] No secrets/large temp files committed

\[x] mission file at lab1.md exists

31 changes: 31 additions & 0 deletions .github/workflows/lab1-smoke.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Lab 01 Smoke Test

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 be ready
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 up!"
curl -s -o /dev/null -w "HTTP Status: %{http_code}\n" http://localhost:3000
exit 0
fi
echo "Waiting... $i"
sleep 2
done
echo "Timeout reached"
exit 1
Loading