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
3 changes: 3 additions & 0 deletions .harness/profile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ requires:
stop: verify-on-stop
commands:
verify: ./scripts/verify.sh
integration: null
bundles_applied:
- cloud-guards
- verify-on-stop
Expand All @@ -42,6 +43,8 @@ harness_disclosure:
bundles_applied: []
verify:
cmd: ./scripts/verify.sh
integration_cmd: null
hermetic_stop_only: true
stop_verify: project-verify-on-stop
cloud_verify: null
agents_md_lines: null
Expand Down
10 changes: 10 additions & 0 deletions scripts/check-stub-canary.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
# DO_NOT_DELETE_STUB_CANARY
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
cd "$ROOT"
if [[ -f scripts/verify.sh ]] && grep -q 'TODO: add real test' scripts/verify.sh; then
echo "STUB_CANARY: placeholder verify.sh" >&2
exit 1
fi
echo "check-stub-canary: ok"
4 changes: 4 additions & 0 deletions scripts/verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
cd "$ROOT"

if [[ -x ./scripts/check-stub-canary.sh ]]; then
./scripts/check-stub-canary.sh
fi

if command -v corepack >/dev/null 2>&1; then
corepack enable >/dev/null 2>&1 || true
corepack prepare npm@10.9.2 --activate >/dev/null 2>&1 || true
Expand Down