- Created `qa-test-output-after-fix.txt` and `qa-test-output.txt` to log results of certificate page authentication tests. - Added `build.sh` for deterministic backend builds in CI, utilizing `go list` for efficiency. - Introduced `codeql_scan.sh` for CodeQL database creation and analysis for Go and JavaScript/TypeScript. - Implemented `dockerfile_check.sh` to validate Dockerfiles for base image and package manager mismatches. - Added `sourcery_precommit_wrapper.sh` to facilitate Sourcery CLI usage in pre-commit hooks.
27 lines
526 B
Bash
Executable File
27 lines
526 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
ROOT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
|
|
echo "[charon] repo root: $ROOT_DIR"
|
|
|
|
echo "-- go version --"
|
|
go version || true
|
|
|
|
echo "-- go env --"
|
|
go env || true
|
|
|
|
echo "-- go list (backend) --"
|
|
cd "$ROOT_DIR/backend"
|
|
echo "module: $(cat go.mod | sed -n '1p')"
|
|
go list -deps ./... | wc -l || true
|
|
|
|
echo "-- go build backend ./... --"
|
|
if go build ./...; then
|
|
echo "BUILD_OK"
|
|
exit 0
|
|
else
|
|
echo "BUILD_FAIL"
|
|
echo "Run 'cd backend && go build -v ./...' for verbose output"
|
|
exit 2
|
|
fi
|