ملف آخر
Signed-off-by: Mohamed-Abdelhalim2 <codepen.io.dropper985@passinbox.com>
هذا الالتزام موجود في:
38
.github/workflows/ci.yml
مباع
Normal file
38
.github/workflows/ci.yml
مباع
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
name: SteganoPixel CI/CD Pipeline
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main, develop ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ main, develop ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
validate-and-build:
|
||||||
|
name: Lint, Type Check, and Build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: 📥 Checkout Source Code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: ⚙️ Setup Node.js Environment
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: '18.x'
|
||||||
|
cache: 'npm'
|
||||||
|
|
||||||
|
- name: 📦 Install Dependencies
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: 🔍 Run TypeScript Type Checking
|
||||||
|
run: npm run build --if-present
|
||||||
|
|
||||||
|
- name: 🏗️ Verify Production Build
|
||||||
|
run: npm run build
|
||||||
|
|
||||||
|
- name: 📤 Upload Build Artifacts
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: steganopixel-production-dist
|
||||||
|
path: dist/
|
||||||
|
retention-days: 7
|
||||||
المرجع في مشكلة جديدة
حظر مستخدم