Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions .github/workflows/quality-gate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Quality Gate

on:
pull_request:
branches: [main]
push:
branches: [main]

jobs:
frontend:
name: Frontend Checks
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Enable corepack and install dependencies
run: |
corepack enable
pnpm install --frozen-lockfile

- name: Check formatting (Prettier)
continue-on-error: true
run: pnpm format:check

- name: Type check (TypeScript)
run: pnpm exec tsc --noEmit

backend:
name: Backend Checks
runs-on: ubuntu-latest
defaults:
run:
working-directory: backend
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
cache-dependency-path: |
backend/requirements.txt
backend/requirements-dev.txt

- name: Install dependencies
run: make install-dev

- name: Check formatting (Black)
continue-on-error: true
run: make check-format

- name: Run tests
continue-on-error: true
run: pytest --tb=short -q
Loading