50e25e3ee8
Rename subdirectories for a cleaner single-repo layout: - website-monitoring-backend/ → backend/ - website-monitoring-frontend/ → frontend/ - website-monitoring-devops/ → devops/ Update all references in package.json scripts, CI workflows, docker-compose, pre-commit hooks, and documentation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
52 lines
1.0 KiB
YAML
52 lines
1.0 KiB
YAML
name: Frontend CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main, develop]
|
|
paths:
|
|
- "frontend/**"
|
|
- ".github/workflows/frontend.yml"
|
|
pull_request:
|
|
branches: [main]
|
|
paths:
|
|
- "frontend/**"
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: frontend
|
|
|
|
jobs:
|
|
lint-test-build:
|
|
name: Lint, Test & Build
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: [18, 20]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
cache: npm
|
|
cache-dependency-path: frontend/package-lock.json
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Lint
|
|
run: npm run lint
|
|
|
|
- name: Test
|
|
run: npm test
|
|
env:
|
|
NODE_ENV: test
|
|
|
|
- name: Build
|
|
run: npm run build
|
|
env:
|
|
NEXT_PUBLIC_SUPABASE_URL: https://placeholder.supabase.co
|
|
NEXT_PUBLIC_SUPABASE_ANON_KEY: placeholder-key
|