Skip to content
Merged
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: 2 additions & 14 deletions .github/workflows/build-website-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,10 @@
pnpm install # Install dependencies
npm run build-stage # Build staging version
npm run coverage
- name: Install smoke test tools
- name: Smoke Test - Application Verification
working-directory: cornucopia.owasp.org
run: |
pnpm add -D serve wait-on

- name: Smoke test
working-directory: cornucopia.owasp.org
run: |
pnpm exec serve build -l 3000 &
sleep 2
pnpm exec wait-on http://localhost:3000

- name: Smoke test
working-directory: cornucopia.owasp.org
run: |
pnpm exec serve build &
pnpm exec serve build -l 3000 &
pnpm exec wait-on http://localhost:3000
npm run smoke-test
kill $(jobs -p) || true
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/build-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@
echo "Max retries reached, skipping audit due to transient registry errors"
exit 0

- name: Smoke test
- name: Smoke Test - Application Verification
working-directory: cornucopia.owasp.org
run: |
pnpm exec serve build &
pnpm exec serve build -l 3000 &
pnpm exec wait-on http://localhost:3000
npm run smoke-test

Expand All @@ -80,5 +80,3 @@
total-parts-count: 3
add-prefix: cornucopia.owasp.org
files: cornucopia.owasp.org/coverage/lcov.info
kill $(jobs -p) || true

Loading