Sanitized root snapshot from private source commit a72903c63e1753f9e6ffbf40453c0830bdfc05c5 and tree 295641e67eef5979da76746d8ae271249568263e. Private development history and workflows are excluded by the exact allowlist. AI-assisted: OpenAI Codex helped implement, test, and audit this preview. Signed-off-by: Cole Speelman <crspeelman@gmail.com>
20 lines
803 B
Bash
Executable File
20 lines
803 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
set -euo pipefail
|
|
root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
|
cd "$root"
|
|
./scripts/check-licenses.sh
|
|
go test -count=1 ./...
|
|
go test -race -count=1 ./...
|
|
go vet ./...
|
|
for script in scripts/*.sh; do bash -n "$script"; done
|
|
work=$(mktemp -d); trap 'rm -rf -- "$work"' EXIT
|
|
GOWORK=off CGO_ENABLED=0 go build -mod=readonly -trimpath -o "$work/tend-1" ./cmd/tend
|
|
GOWORK=off CGO_ENABLED=0 go build -mod=readonly -trimpath -o "$work/tend-2" ./cmd/tend
|
|
cmp "$work/tend-1" "$work/tend-2"
|
|
"$work/tend-1" check --config "$root/examples/blue-green/tend.json" >/dev/null
|
|
"$work/tend-1" check --config "$root/examples/singleton/tend.json" >/dev/null
|
|
[[ $(GOWORK=off go list -m all | wc -l) -eq 1 ]]
|
|
git diff --check
|
|
echo "Tend verification passed"
|