🚨 add pr checks

This commit is contained in:
RJ
2025-12-03 16:28:51 +02:00
parent fd50757c94
commit 77b4e95a93
2 changed files with 36 additions and 20 deletions

View File

@@ -0,0 +1,36 @@
name: PR Checks
on:
pull_request:
branches:
- staging
- main
jobs:
lint-and-build:
runs-on: node-22
steps:
- name: Checkout
uses: actions/checkout@v4
- name: 📥 Install dependencies
run: npm ci
- name: 🔍 Run ESLint
run: npm run lint
continue-on-error: true
- name: 💅 Check code formatting (Prettier)
run: npm run format:check
continue-on-error: true
- name: 🔤 TypeScript type checking
run: npx tsc --noEmit
- name: ✅ All quality checks passed
run: |
echo "✅ All code quality checks passed successfully!"
echo " - ESLint: No linting errors"
echo " - Prettier: Code is properly formatted"
echo " - TypeScript: No type errors"