This repository has been archived on 2026-08-17. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files

23 lines
464 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# shellcheck source=./lib.sh
source "$SCRIPT_DIR/lib.sh"
cd_repo_root
log "Refreshing Codex environment and running repository checks"
"$SCRIPT_DIR/setup.sh"
export PATH="$(pwd)/.codex/bin:$PATH"
if [[ -x scripts/check.sh ]]; then
./scripts/check.sh
else
log "scripts/check.sh not found; running go test ./..."
go test ./...
fi
log "Maintenance complete"