ci: add Gitea Actions — TypeScript check, frontend build, Docker validation, security audit

This commit is contained in:
clawd
2026-02-18 20:27:27 +00:00
parent 27d0e72766
commit c18f88d0d1
3 changed files with 110 additions and 0 deletions

50
.gitea/workflows/ci.yml Normal file
View File

@@ -0,0 +1,50 @@
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
backend-lint-test:
name: 🔧 Backend Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
working-directory: backend
run: npm ci
- name: TypeScript Check
working-directory: backend
run: npx tsc --noEmit
frontend-build:
name: 🎨 Frontend Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
working-directory: frontend
run: npm ci
- name: TypeScript Check
working-directory: frontend
run: npx tsc --noEmit
- name: Build
working-directory: frontend
run: npm run build
- name: Bundle Size
working-directory: frontend
run: |
echo "📦 Bundle Size:"
du -sh dist/assets/*.js | sort -rh
du -sh dist/assets/*.css
echo "---"
TOTAL=$(du -sh dist/ | cut -f1)
echo "Total: $TOTAL"