# REFERENCE ONLY — not used in this repo
#
# This file is kept as a reference template for GitHub Actions CI.
# This repo uses local CI via `./ci/run.sh` (which wraps `./scripts/verify.sh`).
#
# If you want to use GitHub Actions instead:
# 1. Copy this file to `.github/workflows/ci.yml`
# 2. Ensure it calls `./ci/run.sh` or `./scripts/verify.sh`
# 3. Update progress docs to reflect GitHub Actions usage
#
# ---

name: CI

on:
  push:
    branches: [ main, develop ]
  pull_request:
    branches: [ main, develop ]

jobs:
  verify:
    name: Verify Project
    runs-on: ubuntu-latest
    
    steps:
      - name: Checkout code
        uses: actions/checkout@v4
        
      - name: Setup Node.js
        uses: actions/setup-node@v4
        with:
          node-version: '20'
          cache: 'npm'
        
      - name: Setup Java (for Android builds)
        uses: actions/setup-java@v4
        with:
          distribution: 'temurin'
          java-version: '17'
        
      - name: Run verification
        run: ./scripts/verify.sh
        
      - name: Upload verification logs
        if: failure()
        uses: actions/upload-artifact@v4
        with:
          name: verification-logs
          path: |
            **/*.log
            **/build/reports/**
          retention-days: 7
