diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..6b7b061 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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