chore(repo): add codeowners and basic ci
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
Your Name
2026-05-06 11:20:48 +08:00
parent c8759c1d2c
commit df59c4640f
3 changed files with 56 additions and 0 deletions

9
.github/CODEOWNERS vendored Normal file
View File

@@ -0,0 +1,9 @@
* @phamnazage-jpg
.github/ @phamnazage-jpg
db/ @phamnazage-jpg
docs/ @phamnazage-jpg
internal/ @phamnazage-jpg
prd/ @phamnazage-jpg
scripts/ @phamnazage-jpg
test/ @phamnazage-jpg

44
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,44 @@
name: CI
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
verify:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Verify formatting
run: |
gofmt -w $(find . -name '*.go' -not -path './vendor/*')
git diff --exit-code
- name: Run unit and integration tests
run: go test ./... -count=1
- name: Run race tests
run: go test -race ./...
- name: Run vet
run: go vet ./...
- name: Check Gate scripts syntax
run: |
bash -n scripts/verify_preprod_gate_b.sh
bash -n scripts/verify_gate_c_rollback.sh

View File

@@ -125,6 +125,9 @@ go vet ./...
## 协作约定 ## 协作约定
- 提交使用 Conventional Commits - 提交使用 Conventional Commits
- 仓库审阅归属见 [.github/CODEOWNERS](.github/CODEOWNERS)
- PR 会自动执行基础 CI
`go test ./... -count=1``go test -race ./...``go vet ./...`、Gate 脚本语法检查
- 变更配置契约时,必须同步更新: - 变更配置契约时,必须同步更新:
- `docs/CONFIG_CONTRACT_BASELINE.md` - `docs/CONFIG_CONTRACT_BASELINE.md`
- `test/QA_GATE_STATUS.md` - `test/QA_GATE_STATUS.md`