chore(ci): bootstrap CI + hooks
Some checks failed
CI / checks (pull_request) Waiting to run
CI / checks (push) Has been cancelled

Squash-merge bootstrap-cicd into integration
This commit is contained in:
2025-09-10 21:48:32 +00:00
parent 575b33f744
commit 408db0d0cc
19 changed files with 671 additions and 0 deletions

5
.githooks/commit-msg Normal file
View File

@@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -euo pipefail
scripts/commitlint-hook "$1"

11
.githooks/pre-commit Normal file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -euo pipefail
echo "> pre-commit: format + lint + commit message check"
# Run format and lint inside the CI container
scripts/ci format
scripts/ci lint
echo "pre-commit completed."

11
.githooks/pre-push Normal file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -euo pipefail
echo "> pre-push: build validation + placeholders for tests/security"
scripts/ci build
scripts/ci test
scripts/ci security
echo "pre-push completed."