Skip to content

Merge pull request #53 from QAStudio-Dev/cursor/fix-case-500-error-68b2 #255

Merge pull request #53 from QAStudio-Dev/cursor/fix-case-500-error-68b2

Merge pull request #53 from QAStudio-Dev/cursor/fix-case-500-error-68b2 #255

Workflow file for this run

name: Format Check
on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_dispatch:
jobs:
format:
name: Check Code Formatting
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- name: Install dependencies
env:
DATABASE_URL: postgresql://user:pass@localhost:5432/db
run: npm ci
- name: Run formatter
run: npm run format
- name: Check for formatting changes
run: |
if [[ -n $(git status --porcelain) ]]; then
echo "❌ Code formatting issues detected!"
echo ""
echo "The following files need formatting:"
git status --porcelain
echo ""
echo "Please run 'npm run format' locally and commit the changes."
exit 1
else
echo "✅ All files are properly formatted!"
fi