ci: add golangci, migration checks, and pre-commit

DEP-03: check-migrations-pair.sh; migrations/* в path filter; golangci-lint в CI; pre-commit; обновление engineering.mdc (TEST-04, enforcement).
Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Denozordec
2026-05-20 14:53:01 +07:00
co-authored by Cursor
parent e68f034966
commit 55bc87cbc4
4 changed files with 73 additions and 4 deletions
+7
View File
@@ -88,6 +88,7 @@ jobs:
deploy/docker/evobgp-web/*) docker_web=true ;;
deploy/docker/bird2/*) docker_bird=true ;;
go.mod|go.sum|go.work) go=true ;;
migrations/*) go=true ;;
*.go) go=true ;;
cmd/*|internal/*) go=true ;;
esac
@@ -157,6 +158,12 @@ jobs:
run: go vet ./...
- name: Lint httpapi (ERR-01 / ARCH-01)
run: sh scripts/lint-httpapi.sh
- name: Check migration pairs (DEP-03)
run: sh scripts/check-migrations-pair.sh
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.62
- name: Test
run: go test ./... -race -count=1
- name: Build all commands