- ci-ts.yml: lint/typecheck/test/build + arch-scan + docker-build(classes + teacher-portal) - ci-go.yml: vet/build/test + docker-build(api-gateway) - ci-proto.yml: buf lint + buf breaking(本地 .git 比较) - docker.yml: main/tag 触发,构建推送 3 服务镜像到 Gitea Registry - deploy.yml: workflow_dispatch + workflow_run 触发,Runner 直接 docker compose 部署,含健康检查与回滚 - 所有 workflow runs-on: ubuntu-latest 匹配 actrunner 标签
26 lines
608 B
YAML
26 lines
608 B
YAML
name: CI Proto
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- 'packages/shared-proto/**'
|
|
pull_request:
|
|
branches: [main]
|
|
paths:
|
|
- 'packages/shared-proto/**'
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: bufbuild/buf-setup-action@v1
|
|
- name: buf lint
|
|
working-directory: packages/shared-proto
|
|
run: buf lint
|
|
- name: buf breaking
|
|
if: github.event_name == 'pull_request'
|
|
working-directory: packages/shared-proto
|
|
run: buf breaking --against .git#branch=main,subdir=packages/shared-proto
|