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
28 changes: 28 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
## Goal
Describe in one sentence what this PR delivers.

## Changes
- Added/updated:
- Added/updated:
- Added/updated:

## Testing
List the commands you ran and the observed results.

```bash
# paste commands here
```

Observed output/results:
-
-
-

## Artifacts & Screenshots
- Submission file: `submissions/labN.md`
- Other artifacts:
- Screenshots:

- [ ] Title is clear (`feat(labN): <topic>` style)
- [ ] No secrets/large temp files committed
- [ ] Submission file at `submissions/labN.md` exists
40 changes: 40 additions & 0 deletions .github/workflows/lab1-smoke.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Lab 1 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 application
run: |
for i in $(seq 1 30); do
curl --silent --fail http://localhost:3000/rest/admin/application-version >/dev/null && exit 0
sleep 2
done
exit 1

- name: Verify homepage returns HTTP 200
run: |
test "$(curl -s -o /dev/null -w "%{http_code}" http://localhost:3000/)" = "200"

- name: Show HTTP status code
run: |
curl -is http://localhost:3000/ | head -n1
Loading