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
terraform-provider-dynu/codex/maintain.sh
T

22 lines
426 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"
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"