- Complete project structure with Next.js frontend - GraphQL API backend with Apollo Server - Portal application with NextAuth - Crossplane Proxmox provider - GitOps configurations - CI/CD pipelines - Testing infrastructure (Vitest, Jest, Go tests) - Error handling and monitoring - Security hardening - UI component library - Documentation
84 lines
1.8 KiB
YAML
84 lines
1.8 KiB
YAML
name: Portal CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main, develop]
|
|
paths:
|
|
- 'portal/**'
|
|
- '.github/workflows/portal-ci.yml'
|
|
pull_request:
|
|
branches: [main, develop]
|
|
paths:
|
|
- 'portal/**'
|
|
|
|
jobs:
|
|
lint:
|
|
name: Portal Lint
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: ./portal
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
cache: 'npm'
|
|
cache-dependency-path: portal/package-lock.json
|
|
- run: npm ci
|
|
- run: npm run lint
|
|
|
|
type-check:
|
|
name: Portal Type Check
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: ./portal
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
cache: 'npm'
|
|
cache-dependency-path: portal/package-lock.json
|
|
- run: npm ci
|
|
- run: npm run type-check
|
|
|
|
test:
|
|
name: Portal Test
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: ./portal
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
cache: 'npm'
|
|
cache-dependency-path: portal/package-lock.json
|
|
- run: npm ci
|
|
- run: npm test -- --coverage
|
|
- uses: codecov/codecov-action@v3
|
|
with:
|
|
files: ./portal/coverage/coverage-final.json
|
|
flags: portal
|
|
name: codecov-portal
|
|
|
|
build:
|
|
name: Portal Build
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: ./portal
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
cache: 'npm'
|
|
cache-dependency-path: portal/package-lock.json
|
|
- run: npm ci
|
|
- run: npm run build
|
|
|