kindergarten_java/.github/workflows/api-check.yml
En 583b47c430 feat: 新增学校通知、任务模板和日程管理功能
- 新增学校通知控制器 (SchoolNotificationController)
- 新增任务模板创建/更新请求 DTO
- 新增日程计划创建和模板应用请求 DTO
- 新增 TokenService 服务实现
- 新增多个服务实现类 (AdminStats, CourseLesson, CoursePackage 等)
- 添加数据库迁移脚本 V7__fix_schedule_plans.sql
- 更新配置文件和依赖

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 01:06:03 +08:00

56 lines
1.8 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: API Check
on:
pull_request:
branches:
- main
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check api-spec.yml exists
run: |
if [ ! -f "reading-platform-frontend/api-spec.yml" ]; then
echo "❌ 错误api-spec.yml 不存在"
echo "请在后端修改接口后运行npm run api:update"
exit 1
fi
echo "✅ api-spec.yml 存在"
- name: Check generated files exist
run: |
if [ ! -f "reading-platform-frontend/src/api/generated/api.ts" ]; then
echo "❌ 错误src/api/generated/api.ts 不存在"
echo "请在后端修改接口后运行npm run api:update"
exit 1
fi
if [ ! -f "reading-platform-frontend/src/api/generated/model.ts" ]; then
echo "❌ 错误src/api/generated/model.ts 不存在"
echo "请在后端修改接口后运行npm run api:update"
exit 1
fi
echo "✅ API 生成文件存在"
- name: Check generated files are not empty
run: |
if [ ! -s "reading-platform-frontend/src/api/generated/api.ts" ]; then
echo "❌ 错误api.ts 文件为空"
exit 1
fi
if [ ! -s "reading-platform-frontend/src/api/generated/model.ts" ]; then
echo "❌ 错误model.ts 文件为空"
exit 1
fi
echo "✅ API 生成文件不为空"
- name: Summary
run: |
echo "✅ API 规范检查通过"
echo "请确保:"
echo "1. 后端修改接口后已运行npm run api:update"
echo "2. 已提交 api-spec.yml"
echo "3. 已提交 src/api/generated/ 下的文件"