Skip to content

misc: update missing frontend code #25

misc: update missing frontend code

misc: update missing frontend code #25

Workflow file for this run

# ==============================================================================
# CI Pipeline - Learnix
# Runs on: Pull requests and pushes to main
# Uses reusable workflows for DRY pattern
# ==============================================================================
name: CI
on:
push:
branches: [main]
paths:
- "frontend/**"
- "backend/**"
- ".github/workflows/ci.yml"
- ".github/workflows/reusable-ci.yml"
- ".github/actions/**"
pull_request:
branches: [main]
paths:
- "frontend/**"
- "backend/**"
- ".github/workflows/ci.yml"
- ".github/workflows/reusable-ci.yml"
- ".github/actions/**"
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
# ==========================
# Format Check (runs once for whole repo)
# ==========================
format:
name: Format Check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Node.js and pnpm
uses: ./.github/actions/setup-node-pnpm
with:
working-directory: .
node-version: "24"
- name: Check formatting
run: pnpm exec prettier --check .
# ==========================
# Backend CI
# ==========================
backend:
name: Backend
uses: ./.github/workflows/reusable-ci.yml
with:
project: backend
test-command: pnpm test
# ==========================
# Frontend CI
# ==========================
frontend:
name: Frontend
uses: ./.github/workflows/reusable-ci.yml
with:
project: frontend
test-command: pnpm test
# ==========================
# CI Status Check
# ==========================
ci-status:
name: CI Status
runs-on: ubuntu-latest
needs: [format, backend, frontend]
if: always()
steps:
- name: Check CI status
run: |
if [[ "${{ needs.format.result }}" == "failure" ]] || \
[[ "${{ needs.backend.result }}" == "failure" ]] || \
[[ "${{ needs.frontend.result }}" == "failure" ]]; then
echo "❌ CI failed"
exit 1
fi
echo "✅ All CI checks passed"