feat(ci): add CI/CD pipeline configuration and tests

This commit is contained in:
2025-05-27 12:42:51 +02:00
parent 1688849521
commit 9b7d001611
18 changed files with 1841 additions and 127 deletions

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

@ -0,0 +1,65 @@
name: CI/CD Pipeline
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
lint-and-test:
name: Lint, Test & Build
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Run TypeScript type check
run: bun run type-check
- name: Run ESLint
run: bun run lint
- name: Check Prettier formatting
run: bun run format:check
- name: Run tests
run: bun run test:ci
- name: Build application
run: bun run build
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: build-files
path: .next/
security-audit:
name: Security Audit
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Run security audit
run: bun audit
- name: Run dependency check
run: bunx audit-ci --moderate