Signed-off-by: Mohamed-Abdelhalim2 <codepen.io.dropper985@passinbox.com>
39 أسطر
876 B
YAML
39 أسطر
876 B
YAML
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
|